demo

Delete an User from a frontend Form

Custom PHP Script action
A simple line of Custom Code is required!
For security reason there is not a dedicated Action, which should be too dangerous if not used properly.
Change the Field “Custom ID” with your own.

				
					wp_delete_user($fields['user_id']);
				
			

After the deletion a Redirect action is required to refresh the list of existent users in the form list.

#5673