apply_filters( 'clanbite_matches_rest_collection_data', array<string, mixed> $body, WP_REST_Request $request )Filter: clanbite_matches_rest_collection_data — JSON body for GET clanbite/v1/matches before encoding.
Filter PHP
Parameters
$body(array<string, mixed>)Keys:
matches,total,pages.$request(WP_REST_Request)REST request instance.
Example
add_filter( 'clanbite_matches_rest_collection_data', function ( $body, $request ) {
// Change $body here.
return $body;
}, 10, 2 );Defined in inc/extensions/matches/class-matches-rest.php