get_tags_to_edit

函式
get_tags_to_edit ( $post_id, $taxonomy = 'post_tag' )
引數
  • (int) $post_id
    Required:
  • (string) $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
    Required:
    Default: 'post_tag'
返回值
  • (string|false|WP_Error)
定義位置
相關方法
get_terms_to_editget_term_to_editget_post_to_editget_user_to_editget_category_to_edit
引入
2.3.0
棄用
-

get_tags_to_edit: 這個函式檢索當前使用者可以編輯的標籤物件的陣列。它不接受任何引數,並返回一個標籤物件陣列。

獲取逗號分隔的可供編輯的標籤列表。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
return get_terms_to_edit( $post_id, $taxonomy );
}
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) { return get_terms_to_edit( $post_id, $taxonomy ); }
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
	return get_terms_to_edit( $post_id, $taxonomy );
}

常見問題

FAQs
檢視更多 >