wpseek.com
WordPress开发者和主题制作者的搜索引擎



edit_tag_link › WordPress Function

Since2.7.0
已弃用n/a
edit_tag_link ( $link = '', $before = '', $after = '', $tag = null )
参数: (4)
  • (string) $link Optional. Anchor text. If empty, default is 'Edit This'. Default empty.
    Required: No
    默认: (empty)
  • (string) $before Optional. Display before edit link. Default empty.
    Required: No
    默认: (empty)
  • (string) $after Optional. Display after edit link. Default empty.
    Required: No
    默认: (empty)
  • (WP_Term) $tag Optional. Term object. If null, the queried object will be inspected. Default null.
    Required: No
    默认: null
定义在:
文档:

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



源码

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