• Resolved stratinuity

    (@stratinuity)


    I am trying to display dashboard widgets on the front-end which display conditionally based on user role. I’ve restricted access to the widgets in the Dashboard interface; however all of the widgets display regardless of the user’s role.

    Am I misunderstanding how this works? How can I conditionally display the dashboard widgets on the front-end based on user role?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Kim L

    (@kimmyx)

    Hi @stratinuity,

    Dashboard widgets are meant to be used in your WordPress dashboard, so the authorized roles option is only meant to work there. For example, if you authorized an editor to view a dashboard widget, a menu (WP Data Access) will appear for users with the editor role only.

    For example: https://share.zight.com/4guREzZ9

    For the front-end, you can use another plugin like Content Control or something similar to control the display of content based on a user role.

    Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Role-based access to widgets not working’ is closed to new replies.