get_edit_tag_link

函数
get_edit_tag_link ( $tag, $taxonomy = 'post_tag' )
参数
  • (int|WP_Term|object) $tag The ID or term object whose edit link will be retrieved.
    Required:
  • (string) $taxonomy Optional. Taxonomy slug. Default 'post_tag'.
    Required:
    Default: 'post_tag'
返回值
  • (string) The edit tag link URL for the given tag.
定义位置
相关方法
edit_tag_linkget_edit_post_linkget_edit_term_linkget_tag_linkget_edit_user_link
引入
2.7.0
弃用
-

get_edit_tag_link: 这个函数用来检索给定标签ID的编辑标签屏幕的URL。这可用于生成链接或重定向到编辑标签屏幕。

检索一个标签的编辑链接。

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

常见问题

FAQs
查看更多 >