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。這可用於生成連結或重定向到編輯標籤螢幕。

檢索一個標籤的編輯連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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 ) );
}
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 ) ); }
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
檢視更多 >