Change a user’s role
add_action(‘frm_after_update_entry’, ‘update_user_role’, 10, 2); function update_user_role($entry_id, $form_id){ if ( $form_id == 41 ) { $userid = $_POST[‘item_meta’][1775];// 1775 is the ID of the userID field $role = $_POST[‘item_meta’][1134];// 1134 is the ID of the role dropdown if ( $userid &&…Continue reading