wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



edit_tag_link › WordPress Function

Seit2.7.0
Veraltetn/v
edit_tag_link ( $link = '', $before = '', $after = '', $tag = null )
Parameter: (4)
  • (string) $link Optional. Anchor text. If empty, default is 'Edit This'. Default empty.
    Erforderlich: Nein
    Standard: (leer)
  • (string) $before Optional. Display before edit link. Default empty.
    Erforderlich: Nein
    Standard: (leer)
  • (string) $after Optional. Display after edit link. Default empty.
    Erforderlich: Nein
    Standard: (leer)
  • (WP_Term) $tag Optional. Term object. If null, the queried object will be inspected. Default null.
    Erforderlich: Nein
    Standard: null
Definiert in:
Codex:

Displays or retrieves the edit link for a tag with formatting.



Quellcode

function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) {
	$link = edit_term_link( $link, '', '', $tag, false );

	/**
	 * Filters the anchor tag for the edit link for a tag (or term in another taxonomy).
	 *
	 * @since 2.7.0
	 *
	 * @param string $link The anchor tag for the edit link.
	 */
	echo $before . apply_filters( 'edit_tag_link', $link ) . $after;
}