please click here for more wordpress cource
Custom Taxonomy Registeration is a hook triggered when after a custom taxonomy has been registered then Work this Hook. This hook provides these parameter like
- Taxonomy key
- Name of the taxonomy object
- Arguments Used for registration
Example:
You can see here Registere Taxonomy Code
function wpaccuracy_registered_taxonomy_example( $taxonomy, $object_type, $args ) {
if ( 'customtax' == $taxonomy ) {
// registered as custom taxonomy
}
}
add_action( 'registered_taxonomy', 'wpaccuracy_registered_taxonomy_example', 10, 3 );