• Resolved paranoia1999

    (@paranoia1999)


    I want to enable posting ONLY for specific user role.
    For example:
    Creator = can post
    Subscriber = can’t post

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Yeah you can do that with the plugin’s Access Control shortcodes, as explained on the Installation page. For example something like this:

    [usp_access cap="read"]
        Content for users that have "read" access
    [/usp_access]
    
    [usp_access cap="manage_options"]
        Content for users that have "manage_options" access
    [/usp_access]

    You can change the cap to any capability for any level user role. Then inside each of the shortcodes, where it says “Content for users that have”, you can customize to display the form or whatever is required.

    I hope this helps. Let me know if I can provide any further infos.

    • This reply was modified 3 years, 4 months ago by Jeff Starr.
    Thread Starter paranoia1999

    (@paranoia1999)

    Hi Jeff, thank you for responding. How and where do I add these short codes?

    • This reply was modified 3 years, 4 months ago by paranoia1999.
    Thread Starter paranoia1999

    (@paranoia1999)

    I added the short code

    View post on imgur.com

    but it still shows on subscriber

    View post on imgur.com

    Plugin Author Jeff Starr

    (@specialk)

    I’m not sure. It says you are using dokan_add_product as your capability. That is not one of the default capabilities, but instead is a custom cap added by another plugin. Best advice would be to check dokan_add_product to make sure that it does not include the ability to read (i.e., regular visitors).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only enable blog post creation for specific user role’ is closed to new replies.