unregistered_taxonomy_for_object_type action-hookWP 5.1.0

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

unregister_taxonomy_for_object_type()
unregistered_taxonomy_for_object_type
wp-includes/taxonomy.php 836
do_action( 'unregistered_taxonomy_for_object_type', $taxonomy, $object_type );

Where the hook is used in WordPress

Usage not found.