get_categories_taxonomy

過濾鉤子
apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args )
引數
  • (string) $taxonomy Taxonomy to retrieve terms from.
    Required:
  • (array) $args An array of arguments. See get_terms().
    Required:
定義位置
相關勾子
edit_term_taxonomywidget_categories_argsdelete_term_taxonomydeleted_term_taxonomyedit_term_taxonomies
相關方法
get_categoriesget_taxonomyget_categoryget_the_taxonomiespost_categories_meta_boxget_post_taxonomies
引入
2.7.0
棄用
-

get_categories_taxonomy: 這個函式檢索用於儲存給定文章型別的類別的分類法: 該函式只接受一個引數,即文章型別,並返回一個代表分類法的字串。

過濾用於在呼叫get_categories()時檢索術語的分類法。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$args['taxonomy'] = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );
$args['taxonomy'] = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );
$args['taxonomy'] = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );

常見問題

FAQs
檢視更多 >