Clanbite Social Kit General

apply_filters( 'clanbite_social_feed_team_id', int $team_id, string $feed_context, array<string, mixed> $attributes )

Allow themes / other plugins to supply the team post ID (e.g. custom routing).

Filter PHP

Parameters

$team_id (int)

Resolved team ID (0 if unknown).

$feed_context (string)

Feed context slug.

$attributes (array<string, mixed>)

Block attributes.

Example

add_filter( 'clanbite_social_feed_team_id', function ( $team_id, $feed_context, $attributes ) {
	// Change $team_id here.
	return $team_id;
}, 10, 3 );

Defined in inc/functions.php