registered_taxonomy_(taxonomy)
Fires after a specific taxonomy is registered.
The dynamic portion of the filter name, $taxonomy, refers to the taxonomy key.
Possible hook names include:
Использование
add_action( 'registered_taxonomy_(taxonomy)', 'wp_kama_registered_taxonomy_action', 10, 3 ); /** * Function for `registered_taxonomy_(taxonomy)` action-hook. * * @param string $taxonomy Taxonomy slug. * @param array|string $object_type Object type or array of object types. * @param array $args Array of taxonomy registration arguments. * * @return void */ function wp_kama_registered_taxonomy_action( $taxonomy, $object_type, $args ){ // action... }
- $taxonomy(строка)
- Taxonomy slug.
- $object_type(массив|строка)
- Object type or array of object types.
- $args(массив)
- Array of taxonomy registration arguments.
Список изменений
С версии 6.0.0 | Введена. |
Где вызывается хук
registered_taxonomy_(taxonomy)
wp-includes/taxonomy.php 588
do_action( "registered_taxonomy_{$taxonomy}", $taxonomy, $object_type, (array) $taxonomy_object );