unregistered_taxonomy_for_object_type WordPress Action Hook
The unregistered_taxonomy_for_object_type hook is called when a taxonomy is unregistered for an object type. This hook can be used to take action when a taxonomy is unregistered. For example, you could use this hook to remove custom functionality that was added when the taxonomy was registered.
do_action( 'unregistered_taxonomy_for_object_type', string $taxonomy , string $object_type ) #
Fires after a taxonomy is unregistered for an object type.
Parameters
- $taxonomy
(string)Taxonomy name.
- $object_type
(string)Name of the object type.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |