apply_filters( 'clanbite_match_rest_prepare', array<string, mixed> $item, WP_Post $post, WP_REST_Request $request, string $context )Filter: clanbite_match_rest_prepare — shaped match row for REST (collection or single).
Filter PHP
Parameters
$item(array<string, mixed>)Row data.
$post(WP_Post)Match post.
$request(WP_REST_Request)Request instance.
$context(string)collectionorsingle.
Example
add_filter( 'clanbite_match_rest_prepare', function ( $item, $post, $request, $context ) {
// Change $item here.
return $item;
}, 10, 4 );Defined in inc/extensions/matches/class-matches-rest.php