get_edit_tag_link()
最后更新于:2021-11-26 09:08:06
get_edit_tag_link( int$tag_id, string$taxonomy=’post_tag’)Retrieves the edit link for a tag.
参数
- $tag_id
-
(int) (Required) Tag ID.
- $taxonomy
-
(string) (Optional) Taxonomy slug.
Default value: ‘post_tag’
响应
(string) The edit tag link URL for the given tag.
源文件
文件: gc-includes/link-template.php
function get_edit_tag_link( $tag_id, $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_id, $taxonomy ) );
}