mbr_email_change
Usage
This shortcode returns a HTML form through which the current logged in user linked to an ActiveCampaign contact can change their email address.
The email address is changed in both WordPress and ActiveCampaign. If the user's username in WordPress is an email address the username is also changed to the new email address.
Parameters
Parameters | Description |
---|---|
label | The field label position. Permissible Values: top, left, placeholder Default: top Required: no. |
automation_id | The ActiveCampaign automation ID to add the logged in user to after successful completion of the email change. The available automations can be found in ActiveMember360, Utilities, Automations. Default: none. Required: no. |
button_text | The text to display on the submit button. Default: Process Change Required: no. |
before_submit_button | The text or HTML placed before the submit button. Default: none. Required: no. |
after_submit_button | The text or HTML placed after the submit button. Default: none. Required: no. |
style_submit_button | The CSS style to apply to the submit button. Default: none. Required: no. |
class_submit_button | The CSS class to apply for the submit button. Default: none. Required: no. |
id_submit_button | The HTML id attribute to apply for the submit button. Default: none. Required: no. |
email_1 | The label/placeholder for the first email input field. Default: New Email Address Required: no. |
size_email_1 | The size for the first email input field. Default: 60 Required: no. |
maxlength_email_1 | The maximum input length for the first email input field. Default: 255 Required: no. |
before_email_1 | The text or HTML that should be displayed before the first email label and input field. Default: none. Required: no. |
after_email_1 | The text or HTML that should be displayed after the first email input field. Default: none. Required: no. |
style_email_1 | The CSS style to apply to the first email input field. Default: none. Required: no. |
class_email_1 | The CSS class to apply to the first email input field. Default: none. Required: no. |
email_2 | The label/placeholder for the second email input field. Default: Repeat Email Address Required: no. |
size_email_2 | The size for the second email input field. Default: 60 Required: no. |
maxlength_email_2 | The maximum inputr length for the second email input field. Default: 255 Required: no. |
before_email_2 | The text or HTML that should be displayed before the second email label and input field. Default: none. Required: no. |
after_email_2 | The text or HTML that should be displayed after the second email input field. Default: none. Required: no. |
style_email_2 | The CSS style to apply to the second email input field. Default: none. Required: no. |
class_email_2 | The CSS class to apply to the second email input field. Default: none. Required: no. |
Validity
This shortcode is only processed for logged in users who also exist as contacts within ActiveCampaign.
In all other cases, including WordPress users with the Administrator role nothing will be returned.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_email_change].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
Generates a email change form with the submit button labelled 'Change Email Address' using default values for the remaining parameters:
[mbr_email_change button_text='Change Email Address']
Generates a email change form with the submit button labelled 'Change Now'. Use placeholders for the email input fields set to 'Enter your new email' and 'Repeat your new email'. After a successful email change add the contact to the ActiveCampaign automation with ID 1:
[mbr_email_change button_text='Change Now' email_1='Enter your new email' email_2='Repeat your new email' label='placeholder' automation_id='1']
API
There is currently no ActiveMember360 API function equivalent for this shortcode.