Clanbite Matches

apply_filters( 'clanbite_matches_rest_query_args', array<string, mixed> $args, WP_REST_Request $request )

Filter: clanbite_matches_rest_query_args — arguments passed to WP_Query for the matches collection route.

Filter PHP

Parameters

$args (array<string, mixed>)

Query arguments (invalid combinations may trigger SQL errors).

$request (WP_REST_Request)

REST request instance.

Example

add_filter( 'clanbite_matches_rest_query_args', function ( $args, $request ) {
	// Change $args here.
	return $args;
}, 10, 2 );

Defined in inc/extensions/matches/class-matches-rest.php