unregistered_taxonomy
Action HookDescription
Fires after a taxonomy is unregistered.Hook Information
| File Location |
wp-includes/taxonomy.php
View on GitHub
|
| Hook Type | Action |
| Line Number | 632 |
Hook Parameters
| Type | Name | Description |
|---|---|---|
string
|
$taxonomy
|
Taxonomy name. |
Usage Examples
Basic Usage
<?php
// Hook into unregistered_taxonomy
add_action('unregistered_taxonomy', 'my_custom_function', 10, 1);
function my_custom_function($taxonomy) {
// Your custom code here
}
Source Code Context
wp-includes/taxonomy.php:632
- How this hook is used in WordPress core
<?php
627 *
628 * @since 4.5.0
629 *
630 * @param string $taxonomy Taxonomy name.
631 */
632 do_action( 'unregistered_taxonomy', $taxonomy );
633
634 return true;
635 }
636
637 /**
PHP Documentation
<?php
/**
* Fires after a taxonomy is unregistered.
*
* @since 4.5.0
*
* @param string $taxonomy Taxonomy name.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/taxonomy.php
Related Hooks
Related hooks will be displayed here in future updates.