Change User Role on Load
User function userwp_user_registration_approval($user_id) { // Update user meta as needed if(is_admin()) return; update_user_meta($user_id, 'aiowps_account_status', 'pending'); update_user_meta($user_id, 'userwp_account_status', '1'); // Schedule the role assignment //wp_schedule_single_event(time() + 5, 'userwp_role_assignment', array($user_id)); // Delay by 5 seconds } add_action('user_register', 'userwp_user_registration_approval',PHP_INT_MAX); this hook not calling Assistant If the `user_register` hook is not being triggered, here are some possible reasons and […]