Clanbite Social Kit General

apply_filters( 'clanbite_social_kit_should_auto_membership_sync_user', bool $run, int $user_id )

Whether to run automatic friend/group membership for this user.

Filter PHP

Parameters

$run (bool)

Default true.

$user_id (int)

User ID.

Example

add_filter( 'clanbite_social_kit_should_auto_membership_sync_user', function ( $run, $user_id ) {
	// Change $run here.
	return $run;
}, 10, 2 );

Defined in inc/Membership/Auto_Membership_Sync.php