Skip to main content

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

ParametersDescription
labelThe field label position.
Permissible Values: top, left, placeholder
Default: top
Required: no.
automation_idThe 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_textThe text to display on the submit button.
Default: Process Change
Required: no.
before_submit_buttonThe text or HTML placed before the submit button.
Default: none.
Required: no.
after_submit_buttonThe text or HTML placed after the submit button.
Default: none.
Required: no.
style_submit_buttonThe CSS style to apply to the submit button.
Default: none.
Required: no.
class_submit_buttonThe CSS class to apply for the submit button.
Default: none.
Required: no.
id_submit_buttonThe HTML id attribute to apply for the submit button.
Default: none.
Required: no.
email_1The label/placeholder for the first email input field.
Default: New Email Address
Required: no.
size_email_1The size for the first email input field.
Default: 60
Required: no.
maxlength_email_1The maximum input length for the first email input field.
Default: 255
Required: no.
before_email_1The text or HTML that should be displayed before the first email label and input field.
Default: none.
Required: no.
after_email_1The text or HTML that should be displayed after the first email input field.
Default: none.
Required: no.
style_email_1The CSS style to apply to the first email input field.
Default: none.
Required: no.
class_email_1The CSS class to apply to the first email input field.
Default: none.
Required: no.
email_2The label/placeholder for the second email input field.
Default: Repeat Email Address
Required: no.
size_email_2The size for the second email input field.
Default: 60
Required: no.
maxlength_email_2The maximum inputr length for the second email input field.
Default: 255
Required: no.
before_email_2The text or HTML that should be displayed before the second email label and input field.
Default: none.
Required: no.
after_email_2The text or HTML that should be displayed after the second email input field.
Default: none.
Required: no.
style_email_2The CSS style to apply to the second email input field.
Default: none.
Required: no.
class_email_2The 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

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']

API

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.