Clanbite Matches

apply_filters( 'clanbite_cross_site_sync_incoming_payload', array $body, string $source_host )

Filter incoming peer-sync body after signature verification (mutate with care).

Filter PHP

Parameters

$body (array)

Decoded JSON body.

$source_host (string)

Normalized host from source_site (may be empty before you fix source_site).

Example

add_filter( 'clanbite_cross_site_sync_incoming_payload', function ( $body, $source_host ) {
	// Change $body here.
	return $body;
}, 10, 2 );

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