Signup Shortcode creates a new shortcode you can use to add a simple signup form to any page, post or in a widget.

Shortcode attributes allow you to show only certain signup fields, optionally generate fields like username or password, automatically log the member in, and redirect to the referrer or a specified page after submission.

[pmpro_signup submit_button="Unlock this Post Now!" level="1" login="1" redirect="referrer"]
Email Signup Popup

Video Demo

Installation

You must have the Paid Memberships Pro plugin installed and activated with a valid license type to use this Add On.

  1. Navigate to Memberships > Add Ons in the WordPress admin.
  2. Locate the Add On and click “Install Now”.
    • To install this plugin manually, download the .zip file above, then upload the compressed directory via the Plugins > Add New > Upload Plugin screen in the WordPress admin.
  3. Activate the plugin through the Plugins screen in the WordPress admin.

Edit the page, post or widget desired to add the shortcode.

Shortcode Attributes

If you are using the WordPress Editor, you can add a shortcode like the example below inside any Shortcode Block. Other page builders also support shortcodes using other page elements.

[pmpro_signup submit_button="Unlock this Post Now!" level="1" login="1" redirect="referrer"]

Here is a list of all shortcode attributes you can use with this Add On:

  • hidelabels – (optional) Optionally hide the field “Labels”. The “placeholder” attribute of input fields will be used when available and the label will be shown for fields when required. Note: this may not work with custom fields. (default: false; accepts: true or false)
  • intro – (optional) Override the default “Register for” text above the checkout form or hide the text completely. (default: true; accepts: true, false, or your custom text)
  • custom_fields – (optional) determines whether to show any custom user fields added via plugin settings or other Add Ons. (default: true; Accepts: true or false)
  • level – (required) determines which level to use for the checkout form
  • login – (optional) Set this attribute to show a “Log In” link below the submit button. (i.e. login=”1″)
  • redirect – (optional) Set the page to redirect to after form submission. (default: Membership Confirmation page. accepts: referrer, account, or your custom URL)
  • short – (optional) determines whether to show the Confirm E-mail and Confirm Password fields OR show E-mail Address field only. (default: false; Accepts: true, false, or emailonly)
  • confirm_email – (optional) determines whether to show Confirm E-Mail field (default: false; Accepts: true, false)
  • confirm_password – (optional) determines whether to show Confirm Password field (default: false; Accepts: true, false)
  • submit_button – (optional) Change the “Submit” button text on the checkout form. (default: “Sign Up Now”; accepts: your custom text)
  • title – (optional) Show a heading (h2) with a default “Level Name” above the checkout form or your custom text. (default: false; accepts: true or your custom text)

If the level is free, the account will be created and the member will be automatically redirected to the specified redirect page. If the level is not free, the user will be taken to the membership checkout page to enter billing information.

Even for sites exclusively using the Signup Shortcode for a “free membership level only” site, you must still assign pages to the Membership Levels and Membership Checkout settings on Memberships > Settings > Page Settings in the WordPress admin.

Passing Form Variables In the URL

Site admins can build a custom link that includes form variables such as email address or username. This allows you to pre-fill user information if you are linking to your signup form via another platform, such as an email marketing tool. Here is an example signup link with the email address populated:

https://mydomain.com/signup-form/?email=name@gmail.com

Action and Filter Hooks

If you need to show any custom text inside the shortcode area, there are two available action hooks: pmpro_signup_form_after_submit and pmpro_signup_form_after_form.

This is a Standard Add On.

Standard Add Ons are included in all premium membership plans.