
Grab the Block ID from the editor sidebar when editing an Advanced Posts block, then paste it instead of the placeholder in the snippet below. You must know your way around WP_Query to implement this.
add_filter(
'blocksy:general:blocks:query:args',
function ($query_args, $attributes) {
if (
isset($attributes['uniqueId'])
&&
$attributes['uniqueId'] === 'PLACEHOLDER'
) {
// Modify $query_args here
}
return $query_args;
},
10,
2
);