Clanbite General

apply_filters( 'clanbite_public_team_response', array $data, WP_Post $post )

Filter the public team payload exposed to other Clanbite sites.

Filter PHP

Parameters

$data (array)

Response data.

$post (WP_Post)

Team post.

Example

add_filter( 'clanbite_public_team_response', function ( $data, $post ) {
	// Change $data here.
	return $data;
}, 10, 2 );

Defined in inc/class-public-rest.php