wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



edit_tag_link › WordPress Function

Od2.7.0
Przestarzałyn/a
edit_tag_link ( $link = '', $before = '', $after = '', $tag = null )
Parametry: (4)
  • (string) $link Optional. Anchor text. If empty, default is 'Edit This'. Default empty.
    Wymagane: Nie
    Domyślny: (puste)
  • (string) $before Optional. Display before edit link. Default empty.
    Wymagane: Nie
    Domyślny: (puste)
  • (string) $after Optional. Display after edit link. Default empty.
    Wymagane: Nie
    Domyślny: (puste)
  • (WP_Term) $tag Optional. Term object. If null, the queried object will be inspected. Default null.
    Wymagane: Nie
    Domyślny: null
Zdefiniowane na:
Codex:

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



Źródło

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;
}