Recent

top_ten_query_block_custom_args filter Pro only

top_ten_query_block_custom_args

Filters the custom query args for the Top 10 Query block.

Type: filter
Since: 4.0.0
Source: includes/blocks/class-query.php line 152

Parameters

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

Usage

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