函数原型
edit_tag_link( string $link = ”, string $before = ”, string $after = ”, WP_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:
'' -
$before
string
Optional - Display before edit link.
Default:
'' -
$after
string
Optional - Display after edit link.
Default:
'' -
$tag
WP_Term
Optional - Term object. If null, the queried object will be inspected.
Default:
null
函数返回值
无
函数位置
File: wp-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;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |

