Recent

crp_query_args_before filter

crp_query_args_before

Applies filters to the query arguments before executing the query.

This function allows developers to modify the query arguments before the query is executed.

Type: filter
Since: 3.5.0
Source: includes/class-crp-core-query.php line 262

Parameters

TypeNameDescription
array$argsThe query arguments.
\WP_Post$source_postThe source post.

Usage

add_filter( 'crp_query_args_before', function($args, $source_post) {
    // ...
    return $args;
} );