Blog

Automate WordPress User Account Activation, Deactivation or Deletion

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.

Automate WordPress User Account Activation, Deactivation or Deletion

Click “New Task” from the operations menu. The drop-down to top right indicates the form where the automation will be worked upon.

Automate WordPress User Account Activation, Deactivation or Deletion dashboard

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.

Automate WordPress User Account Activation, Deactivation or Deletion task manager

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.

Automate WordPress User Account Activation, Deactivation or Deletion rule apply

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]

 

Automate WordPress User Account Activation, Deactivation or Deletion manager

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.

Automate WordPress User Account Activation, Deactivation or Deletion user manager

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.

Automate WordPress User Account Activation, Deactivation or Deletion user account

You have successfully deactivated the user account for Payment Processor rule, using Automation.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

shares