Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Purpose
This filter can be used to change the taxonomy options when it’s registered.
Arguments (1)
- $taxonomy (array) – The taxonomy options.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below the taxonomy is changed to ‘hierarchical’.
add_filter( 'aioseo_local_business_taxonomy', 'aioseo_change_local_business_taxonomy' );
function aioseo_change_local_business_taxonomy( $taxonomy ) {
$taxonomy['hierarchical'] = true;
return $taxonomy;
}