Clanbite Matches

apply_filters( 'clanbite_cross_site_sync_outbound_payload', array $body, int $challenge_id, int $match_id, int $challenged_team_id, array $snapshot )

Filter outbound peer-sync payload before signing and POST.

Filter PHP

Parameters

$body (array)

Payload (do not remove required keys without replacing behavior).

$challenge_id (int)

Local challenge ID.

$match_id (int)

Local match ID.

$challenged_team_id (int)

Challenged team ID on this site.

$snapshot (array)

Remote snapshot from the challenge form.

Example

add_filter( 'clanbite_cross_site_sync_outbound_payload', function ( $body, $challenge_id, $match_id, $challenged_team_id, $snapshot ) {
	// Change $body here.
	return $body;
}, 10, 5 );

Defined in inc/class-cross-site-match-sync.php