elliotcondon/acf — pull request #96 by nciske (2013-07-10 00:42:00+00:00)
Title: Add filters to allow taxonomy field queries to be modified before it's run

Dropped 3rd argument used in the relationship filters I based this off as the $the_post wasn't available (and I'm not sure if it's needed here?)

Usage:

function my_taxonomy_query( $args, $field ){
$args['depth'] = 1;
return $args;
}

add_filter('acf/fields/taxonomy/query', 'my_taxonomy_query', 10, 2);
add_filter('acf/fields/taxonomy/query/name=field_name', 'my_taxonomy_query', 10, 2);
//add_filter('acf/fields/taxonomy/query/key=field_51dca0e0c4c49', 'my_taxonomy_query', 10, 2);