Support » Plugin: Content Control - User Access Restriction Plugin » add login or register form

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for your message.

    If you want to display booking form only for registered users, you can use third-party plugins, for example:

    https://wordpress.org/plugins/wordpress-access-control/

    https://wordpress.org/plugins/user-access-manager/

    But there is no option to add it to the shortcode directly.

    Let me know if you have any other questions.

    Plugin Support mlchaves

    (@mlchaves)

    Hi @ehsan14756,

    Thanks for posting.

    We tried your shortcode.

    [content_control][bookly-form staff_member_id=”2″ hide=”staff_members,date,week_days,time_range”][/content_control]

    The good news is that we are able to use your nested shortcode combination without any issues.

    Can you make sure you’re using your nested shortcode in either of these 2 places:

    1) In the Text tab of a classic editor (not the Visual tab)

    2) In an HTML Gutenberg block (not a Shortcode or Paragraph block)

    Here’s an example of the shortcode inside an HTML block in Gutenberg.

    https://share.wppopupmaker.com/Z4ujrQxd

    Here’s the result when we restrict to subscriber and editor roles (as an example).

    https://share.wppopupmaker.com/jku4Ez7b

    You’ll see an unprotected form above the restricted one. And, we use a custom deny message for the protected version.

    Here’s a screen recording of us logged out then logging in as a subscriber to view the Bookly form.

    https://share.wppopupmaker.com/wbub8RoR

    We hope that helps.

    Let us know if you need anything else.

    Have a great day 🙂

    Mark

    Plugin Support mlchaves

    (@mlchaves)

    Hey @ehsan14756,

    Just to follow up. You can add a link to your login form inside the Content Control denial message (Settings > Content Control > General).

    Here’s an example.

    Please <a href="http://twenty-twentyone.local/wp-login.php?redirect_to=http%3A%2F%2Ftwenty-twentyone.local%2Fbookly-booking-form%2F">login</a> to see this page :-)

    You can remove or replace the redirect_to link with what you need.

    Let us know if that works for you.

    Cheers 🙂

    Mark

    • This reply was modified 1 month, 3 weeks ago by mlchaves. Reason: Clarification
    Plugin Support mlchaves

    (@mlchaves)

    Hi @ehsan14756,

    We’re going to mark this thread as resolved since we haven’t heard back from you.

    Please feel free to start a new thread or submit a help request 🙂

    https://code-atlantic.com/contact-us/

    Have a great day!

    Mark

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.