Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP Darko

    (@spwebguy)

    Hi abneyville,

    I don’t understand your question, could you be more precise? What do you mean by “accessible by no-admin users“?

    Thread Starter abneyville

    (@abneyville)

    I mean if I am the “administrator” and i want to let “editors” or “authors” have access and make updates to the Top Bar plugin, How do I do that?

    Plugin Author WP Darko

    (@spwebguy)

    Hi abneyville,

    Now I understand what you mean.

    Simply open you topbar.php file and go to line 82.

    It should be something like this:

    add_menu_page('Top Bar', 'Top Bar', 'administrator', __FILE__, 'tpbr_settings_page', 'dashicons-admin-generic');

    Just change it to:

    add_menu_page('Top Bar', 'Top Bar', 'editor', __FILE__, 'tpbr_settings_page', 'dashicons-admin-generic');

    Basically, you’re just changing the “administrator” to “editor“.

    Let me know how it goes, sorry for the slow answer, you can use our official forums for faster answers next time.

    Best regards

    Thread Starter abneyville

    (@abneyville)

    I did try that and two things happen. It removes the administrator’s access to the plugin. And then when logged in as the editor, it give me a page that says “Cheatin’ uh?” when the editor try to save changes to the plugin.

    Plugin Author WP Darko

    (@spwebguy)

    Hi abneyville,

    Answered you on our forums, I believe the problem is solved. I’ll post the URL to the topic for people looking for the same answer.

    Here: https://wpdarko.com/topic/other-user-roles-have-no-access-to-plugin/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Accessible by other roles’ is closed to new replies.