apply_filters( 'clanbite_social_feed_subject_id', int $subject, string $feed_context, array<string, mixed> $attributes )Filters the subject ID of a registered (third-party) feed context.
Use it to resolve the subject from routing the context itself cannot see. Bundled contexts have their own filters (clanbite_social_feed_profile_user_id, clanbite_social_feed_team_id, clanbite_social_feed_group_id).
Filter PHP
Parameters
$subject(int)Subject ID (0 if unknown).
$feed_context(string)Feed context slug.
$attributes(array<string, mixed>)Block attributes.
Example
add_filter( 'clanbite_social_feed_subject_id', function ( $subject, $feed_context, $attributes ) {
// Change $subject here.
return $subject;
}, 10, 3 );Defined in inc/functions.php