Recent

crp_query_block_custom_args filter Pro only

crp_query_block_custom_args

Filters the custom query args for the CRP Query block.

Type: filter
Since: 3.5.0
Source: includes/blocks/class-query.php line 189

Parameters

TypeNameDescription
array$custom_argsCustom arguments to be passed to \WP_Query.
array$block_queryArray of block query vars.

Usage

add_filter( 'crp_query_block_custom_args', function($custom_args, $block_query) {
    // ...
    return $custom_args;
} );