Clanbite

maybe_push_mirror_match( int $challenge_id, int $match_id, int $challenged_team_id, array $snapshot, string $scheduled_gmt ): void

After a challenge is accepted on the challenged site, create the same match on the challenger’s Clanbite site when the snapshot came from a remote install.

public static

Class: Kernowdev\Clanbite\Cross_Site_Match_Sync

Parameters

$challenge_id (int) Required

clanbite_team_challenge post ID.

$match_id (int) Required

New cp_match ID on this site.

$challenged_team_id (int) Required

Home team on this site.

$snapshot (array) Required

Decoded remote snapshot JSON from the challenge record.

$scheduled_gmt (string) Required

Match schedule (GMT MySQL).

Returns

void

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