registered_taxonomy_for_object_type action-hookWP 5.1.0

Fires after a taxonomy is registered for an object type.

Usage

add_action( 'registered_taxonomy_for_object_type', 'wp_kama_registered_taxonomy_for_object_type_action', 10, 2 );

/**
 * Function for `registered_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_registered_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

register_taxonomy_for_object_type()
registered_taxonomy_for_object_type
wp-includes/taxonomy.php 753
do_action( 'registered_taxonomy_for_object_type', $taxonomy, $object_type );

Where the hook is used in WordPress

Usage not found.