maybe_push_mirror_match( int $challenge_id, int $match_id, int $challenged_team_id, array $snapshot, string $scheduled_gmt ): voidAfter 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) Requiredclanbite_team_challengepost ID.$match_id(int) RequiredNew
cp_matchID on this site.$challenged_team_id(int) RequiredHome team on this site.
$snapshot(array) RequiredDecoded remote snapshot JSON from the challenge record.
$scheduled_gmt(string) RequiredMatch schedule (GMT MySQL).
Returns
void
Defined in inc/class-cross-site-match-sync.php