mbr_clearuser
Overview
ActiveMember360 mbr_clearuser is used to delete a WordPress user. It automatically executes upon receiving an ActiveCampaign HTTP POST sent by an ActiveCampaign webhook.
Unless otherwise specified, all posts and pages authored by the deleted user will also be deleted however they can alternatively be reassigned to an alternative WordPress user
Usage
The URL used for the mbr_clearuser webhook is constructed using your site URL and parameters.
A sample of the URL structure required is as follows:
site_url/?mbr_clearuser=my_security_code
The mbr_clearuser URL is used as the webhook URL in an ActiveCampaign automation.
Site URL & Parameters
Site URL | Description |
---|---|
site_url | The WordPress site URL from which the WordPress user is to be deleted. This can be found in WordPress, Settings, General, Site URL. It must be specified exactly as shown there. Default: none. Required: yes. |
Parameters | Description |
---|---|
mbr_clearuser | Set to the security code used to authenticate the use of mbr_clearuser. The security code used must be defined as detailed in ActiveMember360, Settings, Security, Security Codes. Default: none. Required: yes. |
reassign | Sets the email address of a WordPress user to whom all posts/pages authored by the user being deleted will be reassigned. Default: none. Required: no. |
Examples
In all examples my_security_code must be replaced by a security code defined in ActiveMember360, Settings, Security, Security Codes on the WordPress site.
- Example 1
- Example 2
This webhook URL will result in the deletion of the WordPress user with an email address the same as that of the ActiveCampaign contact for whom the webhook is executed from within an ActiveCampaign automation. Any posts/pages etc. authored by the deleted user will also be deleted:
https://yoursite.com/?mbr_clearuser=my_security_code
This webhook URL will result in the deletion of the WordPress user with an email address the same as that of the ActiveCampaign contact for whom the webhook is executed from within an ActiveCampaign automation. Any posts/pages etc. authored by the deleted user will be reassigned to the WordPress user with the email address johndoe@gmail.com:
https://yoursite.com/?mbr_clearuser=my_security_code&reassign=johndoe@gmail.com