• Resolved toad78

    (@toad78)


    I have set content restriction on the “Register” page that should only be accessible for Administrators and SEO Managers on the frontend. These roles have to be logged in to access the page. However, if I was to go straight to the URL, the registration form is available to the public–not what we want.

    Content Restriction settings are as follows:
    – Restrict access to this post? Checked
    – Who can access… : Logged in users
    – Select which roles… : Administrator, SEO Manager
    – Would you to display 404… : Unchecked
    – What happens… : Redirect user
    – Where should users be directed to? : Login page

    What setting is missing?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter toad78

    (@toad78)

    Is anyone monitoring this post?

    Hi @toad78

    Please let me know if this article helps you with your problem?

    Thread Starter toad78

    (@toad78)

    The page being used IS the “Register” page created by the plugin. So using shortcodes makes no sense.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @toad78

    Sorry, but the register page is an exception to the restriction rule.

    Thank you.

    Thread Starter toad78

    (@toad78)

    That’s too bad. While I understand that the registration page would be open to the public by default, the type of club for new registrants is more of a closed circuit and is only controllable to the Membership admin (with a unique login and access to records). I guess I’ll have to disable the Register page then and figure out another method to make this work.

    Thank you, @andrewshu .

    @toad78

    You can try to use the um_registration_for_loggedin_users filter.

    Add to the filter an exit if user not being logged in.
    Look at class-shortcodes.php line 686 for details about the filter.

    This code snippet will allow logged in user to do registrations:
    add_filter( 'um_registration_for_loggedin_users', '__return_true' );

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Content Restriction on a Page Not Working’ is closed to new replies.