Clanbite Social Kit Teams

apply_filters( 'clanbite_social_kit_user_can_post_to_team_feed', bool $can, int $team_id, int $user_id )

Filter whether a user may post to a team feed.

Filter PHP

Parameters

$can (bool)

Whether posting is allowed.

$team_id (int)

Team post ID.

$user_id (int)

User ID.

Example

add_filter( 'clanbite_social_kit_user_can_post_to_team_feed', function ( $can, $team_id, $user_id ) {
	// Change $can here.
	return $can;
}, 10, 3 );

Defined in inc/team-feed.php