This filter can be used to change the locations category query args.

Arguments (1)

  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;