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 locations category query args.
Arguments (1)
- $args (array) – WP_Term_Query arguments.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below we exclude a category from the query.
add_filter( 'aioseo_local_business_get_location_category_args', 'aioseo_change_local_business_get_location_category_args' );
function aioseo_change_local_business_get_location_category_args( $args ) {
$args['exclude'] = '14';
return $args;
}