The Professional Membership Plugin for WordPress

 

Your Members – User Management

Ready to go beyond the basics of Your Members user management? Here, we’ll show you some of the fantastic tools built right into Your Members that will allow users to sign up, as well as some of the advanced user management tools.

Sign Up

By default, Your Members offers the ability to sign up via the existing WordPress registration system: wp-login.php?action=register

Modifying User Data

Users can modify their own personal details right inside the WordPress user control panel interface inside WordPress. The additional custom fields are added to the bottom of the WordPress user profile page. Several alternate panels have also been added for membership specific content.

Upgrading Users

The user can update their membership subscription in the user control panel within WordPress admin area. There is also a widget for upgrading called “Widgetable” that you can add to virtually any theme.

Registration Shortcodes

Your Members shortcodes give you the power to create powerful registration features. The three shortcodes are:


[ym_register]
[ym_upgrade]
[ym_user_profile]

These shortcodes work just like their WordPress admin equivalents, but within a page or POST!! However, these functions have been heavily modified.

For example, let’s say you want to create a special subscription-only set of content, only available through a specific page. In Your Members, go to the Subscription section and select the “hidden” option. Make sure to make note of the ID. Then, on the page, use the following:

[ym_register id=xx]

xx in this shortcode is the subscription. Now, you will see a normal registration form embedded into the page, but it won’t have the option of choosing which subscription. The only one users will be able to sign up for is the one you designated in the shortcode. If you want to EXCLUDE a custom field from the registration form, you can do so by looking up the ID for each, and then us:

[ym_register id=xx hide_custom_fields=yy,zz]

You can also create dedicated custom registration flows via Your Members admin -> Membership -> Custom Registration Flows

These are applied using

[ym_register id=xx flow=yy]
For more information see building basic custom registration flows

The upgrade works in exactly the same way. This gives you the opportunity to offer dedicated upgrades.

Now, let’s make a very quick generic upgrade/registration page with our shortcodes. First, create a page and give all account types access to it, except for guests. Then:


[no_access]
Please use the form below to register
[ym_register]
[/no_access]
[user_has_access]
Select Upgrade:
[ym_upgrade]
[/user_has_access]

While Your Member account types are not hierarchical, you can create a pseudo order. In this example, we’ll have 3 subscriptions, each with a different account type: bronze, silver, and gold.


[no_access]
Please use the form below to register
[ym_register]
[user_has_access]
[user_account_is#bronze]
Upgrade to Silver
[ym_upgrade id=2]
Upgrade to Gold
[ym_upgrade id=3]
[/user_account_is]
[user_account_is#silver]
Upgrade to Gold
[ym_upgrade id=3]
[/user_account_is]
[user_account_is#gold]
There are no upgrades but you can:
DownGrade to Silver
[ym_upgrade id=2]
Downgrade to Bronze
[ym_upgrade id=1]
[/user_account_is]
[/user_has_access]

In this scenario, we’ve created the illusion of a hierarchy by using the varying options detailed in the shortcode guide. We love that this gives you the freedom to be quite creative.

Want to make it so that only people who have access to a specific page can upgrade? No problem.


[user_has_access#PAGE_ID]

(Note: Some of the shortcodes use #hashes, while others use IDs. Over the next few versions, we will be shifting everything over to the newer id= method.)

Building a User Manager Area

To help explain some of Your Members’ more powerful features, let’s build a user management area.

First, create a page called user. Make sure all the account types are checked, except for “guest”. In fact, you might want to start with:


[no_access][ym_register][/no_access]

On the user page, we are going to create a user management screen:

[user_has_access]
Hi [ym_user_username]!
Please feel free to edit your profile:
[ym_user_profile_form]
[ym_profile]
[/user_has_access]

Basically, we have just recreated the user profile page, but we’ve included additional information about the user’s subscription expiration date and other necessary details. We’ve also customised the pages and given them some personality by adding their username. If you’d like, you can also use the firstname from the form, or even a custom field using shortcodes.

We can further expand this page by including which posts they have purchased. To do that, use:

[ym_membership_content]

If you want the ability to cancel their account

[ym_user_unsubscribe]

Add their RSS token

[ym_rss_token]

Change their password

[ym_user_password_form]

Change their Custom Fields

[ym_user_profile]