Action hook 'unregistered_taxonomy_for_object_type'

in WP Core File wp-includes/taxonomy.php at line 836

View Source

unregistered_taxonomy_for_object_type

Action Hook
Description
Fires after a taxonomy is unregistered for an object type.

Hook Information

File Location wp-includes/taxonomy.php View on GitHub
Hook Type Action
Line Number 836

Hook Parameters

Type Name Description
string $taxonomy Taxonomy name.
string $object_type Name of the object type.

Usage Examples

Basic Usage
<?php
// Hook into unregistered_taxonomy_for_object_type
add_action('unregistered_taxonomy_for_object_type', 'my_custom_function', 10, 2);

function my_custom_function($taxonomy, $object_type) {
    // Your custom code here
}

Source Code Context

wp-includes/taxonomy.php:836 - How this hook is used in WordPress core
<?php
 831  	 * @since 5.1.0
 832  	 *
 833  	 * @param string $taxonomy    Taxonomy name.
 834  	 * @param string $object_type Name of the object type.
 835  	 */
 836  	do_action( 'unregistered_taxonomy_for_object_type', $taxonomy, $object_type );
 837  
 838  	return true;
 839  }
 840  
 841  //

PHP Documentation

<?php
/**
	 * Fires after a taxonomy is unregistered for an object type.
	 *
	 * @since 5.1.0
	 *
	 * @param string $taxonomy    Taxonomy name.
	 * @param string $object_type Name of the object type.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-includes/taxonomy.php
Related Hooks

Related hooks will be displayed here in future updates.