unregistered_taxonomy_for_object_type
Fires after a taxonomy is unregistered for an object type.
Usage
add_action( 'unregistered_taxonomy_for_object_type', 'wp_kama_unregistered_taxonomy_for_object_type_action', 10, 2 ); /** * Function for `unregistered_taxonomy_for_object_type` action-hook. * * @param string $taxonomy Taxonomy name. * @param string $object_type Name of the object type. * * @return void */ function wp_kama_unregistered_taxonomy_for_object_type_action( $taxonomy, $object_type ){ // action... }
- $taxonomy(string)
- Taxonomy name.
- $object_type(string)
- Name of the object type.
Changelog
Since 5.1.0 | Introduced. |
Where the hook is called
unregistered_taxonomy_for_object_type
wp-includes/taxonomy.php 836
do_action( 'unregistered_taxonomy_for_object_type', $taxonomy, $object_type );