Automate WordPress User Account State
This rule helps to automate WordPress user account activation, deactivation or deletion without manual intervention. You can automate WordPress user account without coding.
WordPress user account automation options include:
- Do nothing
- Activate Account
- Deactivate Account
- Delete Account
You can select one of above options to automate the task to desired user account state.
Navigation to the Automation Task Settings
From your WordPress dashboard, go to RegistrationMagic plugin. Browse to the “Automation” feature.
Click “New Task” from the operations menu. The drop-down to top right indicates the form where the automation will be worked upon.
Clicking on “New Task” navigates you to the “Task Settings” page. Fill the input box for “Task Name” with a unique task name. Fill the description below stating the task.
In this case, the task is to automate user account actions.
The next page has automation inputs such as user account rule, define period, field value rule, payment status and processor rules.
The user account rule selects users depending on the state of the account. The submission range field defines submission parameters before or after the given time period. The field value rule chooses submissions based on the field values on your form. The payment processor rule has a number of payment gateways to choose from. Selecting a particular gateway accepts those form submissions going through that particular payment processor. The payment status rule select users according to their payment status; only the submissions through selected payment status will be worked upon during automation.
Navigate to the third page by clicking next. You can see four options embedded with radio buttons. Choose any one of them.
As an example, we go ahead with the “Deactivate Account” option when user’s payment processor is PayPal.
Scroll down and click the save button.
Automating user account action in WordPress
The primary Automation page now has a “New Task” implanted on it. Click “Run Now” to activate the automation manually. Automation rules run automatically with WordPress processes.
[Note to not select rule that can deactivate all users, as this setting will deactivate you as an admin too]
Go to form’s front-end. Fill the form with relevant details. In this case for testing purposes, we have used the email address [email protected] Choose PayPal processor and make a test payment. Submit the form.
Go back to your WordPress dashboard. Navigate to User Manager section under RegistrationMagic plugin.
You can see a number of user accounts with their respective email ID’s. You will see that the account with the name “automate” is deactivated.
This is because you selected the “deactivate account” option from the Task Settings page, whenever user payment processor is PayPal.
Click “View” to manage the user account.
You have successfully deactivated the user account for Payment Processor rule, using Automation.
- How to Add Conditions to Fields in WordPress Form - June 15, 2018
- Automate Actions on WordPress Form Payment Status - June 5, 2018
- Automate actions on WordPress form field values - June 4, 2018
- Automation Based on WordPress Form Payment Gateway - June 3, 2018
- Automation On WordPress User Account Activation or Deactivation - May 29, 2018
- How to submit WordPress form data to external url - May 28, 2018
- Automation Based On WordPress Form Submission Time - May 27, 2018
- Redirect user to specific page after form submission - May 27, 2018
- Configure WordPress Form Notification Emails to Users and Admin - May 26, 2018
- Setting up automated Emails for WordPress forms - May 25, 2018