Recent

top_ten_query_block_custom_argsfilterPro 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/pro/blocks/class-query.php line 154

Parameters

Type Name Description
array $custom_args Custom arguments to be passed to \WP_Query.
array $block_query Array of block query vars.
int $page Current query page.

Usage

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