Hi Pablo
Apologies for the delay coming back.
Our filter, sf_edit_query_args
is meant especially for this reason, so your changes are reflected across our fields.
I just did a quick test, with a different meta query (using price, on my shop) and it worked exactly as expected, with all the fields updating their count numbers:
add_filter( 'sf_edit_query_args', 'kp_exclude_sold_older_than_two_months', 100, 2 );
function kp_exclude_sold_older_than_two_months( $query ) {
$query['meta_query'] = array(
array(
'key' => '_price',
'value' => 11,
'compare' => '>=',
'type' => 'NUMERIC'
)
);
return $query;
}
The only thing is, some fields, such as post type, don’t have a dynamic count, so would remain unaffected regardless.
Could this be the issue you are seeing?