registered_taxonomy

動作鉤子
do_action( 'registered_taxonomy', $taxonomy, $object_type, (array)
引數
  • (string) $taxonomy Taxonomy slug.
    Required:
  • (array|string) $object_type Object type or array of object types.
    Required:
  • (array) $args Array of taxonomy registration arguments.
    Required:
定義位置
相關勾子
unregistered_taxonomyregister_taxonomy_argsregistered_taxonomy_taxonomyedited_taxonomyedit_term_taxonomy
相關方法
register_taxonomyunregister_taxonomyis_taxonomyget_taxonomyregister_metaregister_taxonomy_for_object_type
引入
3.3.0
棄用
-

registered_taxonomy 是一個動作,當一個分類法在WordPress中被註冊時被觸發。這個鉤子通常由外掛或主題開發者使用,以便在分類法被註冊時執行額外的動作。

在一個分類法被註冊後發生觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object );
do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object );
do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object );

常見問題

FAQs
檢視更多 >