Support » Plugin: Custom Content Shortcode » Request: If Role – extend if login to support user role?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    Thank you for the feedback. Sure, targeting user roles sounds useful – I’ll look into adding that feature. I’m a bit busy until next week, so the next update might take some days.

    I’ll let you know on this thread when I get it implemented.

    Plugin Author Eliot Akira

    (@miyarakira)

    In the latest update, I added role and capable parameters to the [is] shortcode. Please refer to the documentation under Settings -> Custom Content -> User, for details on the new parameters.

    To check if a user has a role:

    [is role="editor"]
        You are an editor.
    [/is]

    For ease of use, I added a listing of available user roles and capabilities in the Content Overview page, under Dashboard -> Content.

    Let me know if that works for your purpose!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Request: If Role – extend if login to support user role?’ is closed to new replies.