After Registration Extended Profile Fields - Shortcodes


Shortcodes

Back to User Guide

TIP: What Are Shortcodes

Shortcodes add dynamic content to your site via a small piece of code. Learn more: Shortcodes - How To Use

The plugin has three shortcodes.


Display the Notice Container

  • Shortcode[cmareg-extended-profiles-notice]
  • Parameters
    • roles - Add roles if you want to enable for specific roles. You can add multiple roles by separating them with a comma (,).
  • Example:
    • [cmareg-extended-profiles-notice roles="role1,role2"]

Display the Extended Profile Form

  • Shortcode[cmareg-extended-profiles]
  • Parameters
    • showheader - Whether to show the header (0 or 1). Default is 1.
    • roles - Add roles if you want to enable for specific roles. You can add multiple roles by separating them with a comma (,).
    • newrole - Add the role name if you want to change user role after profile complete. You can only add a single role.
  • Example:
    • [cmareg-extended-profiles showheader=0 roles="role1,role2" newrole="admin"]

Display the Profile Form Data

Note: This shortcode was introduced in version 1.1.3.

  • Shortcode: [cmareg-user-profile-field]
  • Parameters:
    • usermeta - Add the metakey of the profile field that you want to display.
  • Example:
    • [cmareg-user-profile-field usermeta="user-first-name"]

Usage Example

You can find the metakey in the field User Meta Key when editing any profile field. The metakey can be either auto-generated or you can define the custom one:

Adding shortcodes to the page:

Result on the front-end:


Get more information about the  CM After Registration Extended Profile Fields WordPress Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.