Userwp hook troubleshooting
User function userwp_user_registration_approval($user_id) { // Check if the UsersWP plugin is active if (class_exists('UsersWP')) { // Update user meta as needed update_user_meta($user_id, 'aiowps_account_status', 'pending'); update_user_meta($user_id, 'userwp_account_status', '1'); // Get the user object $user = get_userdata($user_id); if ($user) { // Remove the 'subscriber' role if the user has it $user->remove_role('subscriber'); // Check if the 'provider' role […]