This filter can be used to change the taxonomy options when it’s registered.

Arguments (1)

  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;