Clanbite Social Kit General

apply_filters( 'clanbite_social_feed_group_id', int $group_id, string $feed_context, array<string, mixed> $attributes )

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

Filter PHP

Parameters

$group_id (int)

Resolved group ID (0 if unknown).

$feed_context (string)

Feed context slug.

$attributes (array<string, mixed>)

Block attributes.

Example

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

Defined in inc/functions.php