函数原型
get_edit_tag_link( int|WP_Term|object $tag, string $taxonomy = ‘post_tag’ ): string
函数描述
Retrieves the edit link for a tag.
是否弃用
未弃用
函数参数
-
$tag
int|WP_Term|object
Required - The ID or term object whose edit link will be retrieved.
-
$taxonomy
string
Optional - Taxonomy slug. Default
'post_tag'.Default:
'post_tag'
函数返回值
string The edit tag link URL for the given tag.
函数位置
File: wp-includes/link-template.php.
函数源码
function get_edit_tag_link( $tag, $taxonomy = 'post_tag' ) {
/**
* Filters the edit link for a tag (or term in another taxonomy).
*
* @since 2.7.0
*
* @param string $link The term edit link.
*/
return apply_filters( 'get_edit_tag_link', get_edit_term_link( $tag, $taxonomy ) );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |

