edit_tag_link()
最后更新于:2021-11-26 04:01:07
edit_tag_link( string$link=”, string$before=”, string$after=”, GC_Term$tag=null)Displays or retrieves the edit link for a tag with formatting.
参数
- $link
-
(string) (Optional) Anchor text. If empty, default is ‘Edit This’.
Default value: ”
- $before
-
(string) (Optional) Display before edit link.
Default value: ”
- $after
-
(string) (Optional) Display after edit link.
Default value: ”
- $tag
-
(GC_Term) (Optional) Term object. If null, the queried object will be inspected.
Default value: null
源文件
文件: gc-includes/link-template.php
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;
}