Auto Approve Pending Member in Private Space
Hello, is there any way to automatically approve member when joining a private space?
My case here, I have some public spaces & private spaces, but I want to user can join both public & private spaces easily without admin approval.
You can use this php code snippet:
add_filter('fluent_community/space/join_status_for_private', function ($status, $space, $user) {
// Auto approve all private space join requests
if ($space->privacy === 'private') {
return 'active';
}
return $status;
}, 10, 3);
Shahjahan JewelΒ thankyou very much! I will try it.