Use the block editor (Gutenberg) blocks

5 minBeginnerUltimate Membership Pro 14.2+

In the WordPress block editor, Ultimate Membership Pro adds 12 blocks: 11 that place a plugin form or page, such as the registration form, the checkout or the Member Portal, and the Content Locker Shortcode block, which hides part of a page from some visitors. You build member pages by adding blocks, without typing shortcodes.

This guide finds the blocks, explains what each one shows, and sets up the locker block around members-only content.

Before you start

Find the blocks

  1. Open a page or post in the block editor.
  2. Click the + block inserter and type UMP (or membership) in the search box.
Block inserter with the search UMP and 12 results: Content Locker Shortcode, Registration Form, Login Form, Checkout Page, Thank You Page, Logout Button, Password Recovery, Member Portal, Subscriptions Plan, Public Individual Page, Login Modal Trigger and Registration Modal Trigger
Searching “UMP” lists all 12 blocks.

Without a search, the 11 page blocks are in the Ultimate Membership Pro – Shortcodes group of the inserter, and Content Locker Shortcode is in the Text group.

Add a form or page

  1. Click a block to add it, for example Login Form.
  2. Publish or update the page, then open it to see the result.
Block editor with the page Coaching Club lesson: a paragraph, the Login Form block selected and showing [ihc-login-form], another paragraph and the Registration Form block showing [ihc-register]; the sidebar shows Login Form with only Advanced settings
In the editor, each block shows the shortcode it places. The form appears on the published page.

These blocks have no settings of their own. Each one places the plugin’s shortcode, so the form or page looks the way you set it up in Ultimate Membership Pro›Showcases.

Published page Member login with the text Members, log in to open your lessons and the login form: Username, Password, Remember Me, Lost your password?, LOG IN button and Don't have an account? Register
The published page with the Login Form block.

The 11 page blocks

Registration Form

The registration form. See Set up the registration form. Places [ihc-register].

Login Form

The login form. See Set up the login form. Places [ihc-login-form].

Checkout Page

The checkout: payment method, coupon, taxes and the purchase button. Places [ihc-checkout-page].

Thank You Page

The page members see after a purchase. Places [ihc-thank-you-page].

Logout Button

A logout link. See Add a logout link to your menu. Places [ihc-logout-link].

Password Recovery

The lost password form. See How password reset works. Places [ihc-pass-reset].

Member Portal

The member’s account area. See Set up the Member Portal. Places [ihc-user-page].

Subscriptions Plan

Your Memberships as a pricing table, with their buy buttons. Places [ihc-select-level].

Public Individual Page

A member’s public profile. See Show public member profiles. Places [ihc-visitor-inside-user-page].

Login Modal Trigger

A “Login” link that opens the login form in a popup. See Login and registration popups. Places [ihc-login-popup]Login[/ihc-login-popup].

Registration Modal Trigger

A “Register” link that opens the registration form in a popup. Places [ihc-register-popup]Register[/ihc-register-popup].

Put forms on the pages the plugin uses

Redirects and links go to the pages chosen in Ultimate Membership Pro›Settings›Pages Setup. Add the Registration Form block to your Register page, Login Form to your Login page, and so on, so members land where the block is.

Need an option? Use the Shortcode block

The blocks always place the shortcode without attributes. To pick a form template or another option, add the WordPress Shortcode block instead and paste the shortcode with its attributes, for example [ihc-login-form template="ihc-login-template-3"]. Every attribute is in Shortcodes reference.

Hide part of a page with the locker block

  1. In the inserter, search for locker and click Content Locker Shortcode.
  2. Put the members-only blocks inside it: paragraphs, images, videos or any other block.
  3. Select the locker block and set its options in the block settings sidebar.
Block inserter with the search locker and the Content Locker Shortcode block as the result
Search for “locker” in the inserter.
Block settings of the Content Locker Shortcode block: Type Show, Target list with All, Registered Users, Unregistered Users and the Memberships, Template
The three settings of the locker block.
Type

How the Target list is used.

  • Show: only the targets see the content.
  • Block: everyone except the targets sees it.

Default: Show

Target

Who the rule is about: All, Registered Users, Unregistered Users or one or more Memberships. Hold Ctrl (Cmd on a Mac) to pick several.

Template

The locker box shown instead of the hidden blocks. Leave it on “…” for the default. Templates are made in Hide part of a page (Inside Locker).

Test as a visitor

Administrators always see locked content. Check the page logged out or as a member. See Restricted content is visible to everyone.

To restrict a whole page instead of a part of it, use the Locker box in the editor sidebar; see Restrict your first page.

Example: a lesson page for members

Coaching Club lessonVisitors can log in or sign up on the page; the worksheet and video are only for paying members.
Top of the page
Paragraph, then the Login Form block
For new visitors
Paragraph, then the Registration Form block
Locker block
Type Show, Target Pro Monthly and Annual Pass
Inside the locker
Video block and a File block with the worksheet
Visitors see
The forms, then the locker box instead of the lesson

Troubleshooting

Why do I only see the Content Locker Shortcode block?

Your Ultimate Membership Pro version is older and doesn’t load the other blocks. Update the plugin, then reload the editor. Until then, the WordPress Shortcode block with the shortcodes listed above shows the same forms and pages.

Searching “UMP” finds nothing. Why?

Check that Ultimate Membership Pro is active and up to date. You can also search for “membership” or open the Ultimate Membership Pro – Shortcodes group in the inserter.

The editor shows [ihc-login-form] instead of the form. Is that right?

Yes. In the editor the blocks show their shortcode; the form or page appears on the published page.

Everyone can see the content inside the locker block. Why?

You’re probably logged in as administrator, and administrators see everything. Open the page in a private window or as a member. Then check Type and Target.

Can I use these in the classic editor or in Elementor?

Yes. Use the shortcodes in the classic editor, or the Ultimate Membership Pro widgets in Elementor. See Use the Elementor widgets.

What’s next

What are your feelings

  • Happy
  • Normal
  • Sad