WordPress.org

Ready to get started?Download WordPress

Forums

Change rules for new plugins (11 posts)

  1. mvanboordt
    Member
    Posted 1 year ago #

    Hi,

    I wonder how to do the following.

    I have my website running and users with certain roles to add and change content on my website.
    Recently I have installed an plugin as an inprovement to my website.
    The problem is that a user with the role subscriber can edit the plugin settings.
    How can I edit the user roles for that plugin without having to edit the plugin directly. I don't want to do this everytime the plugin has an update.

    Thnx in advance.

    M.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Have you tried contacting the plugin's developer about this?

  3. mvanboordt
    Member
    Posted 1 year ago #

    No I haven't.
    Usually if I need some help with a plugin there will be no response or after a couple of months.

    So therefore I haven't contacted them.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    I'd suggest that you try contacting them about this problem.

  5. mvanboordt
    Member
    Posted 1 year ago #

    In the meantime I did but the plugin page says that the plugin is being discontinued!

    The theme I have is custom made so I can easily change this. I don't really know how!

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    In that case, you'll either have to roll up your sleeves and dig into the PHP code for the plugin or you'll need to hire someone to carry out the change for you. Another option would be to abandon this plugin and look for another suitable role management plugin. There are quite a few around.

  7. mvanboordt
    Member
    Posted 1 year ago #

    Well that is exactly what I don't want to do.
    Digging in to the PHP is not really the problem but I don't want to have to edit the plugin everytime there is a update. However this plugin will not be updated for a while but maybe in the future it will.

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    If it was me, I'd probably just look for a newer role management plugin but if you do want to edit your existing plugin, you'll need to apply a specific capability as a parameter to add_options_page() (which creates the plugin's own page in the admin area). The first part of this article gives a pretty good overview of how it should work

  9. mvanboordt
    Member
    Posted 1 year ago #

    Thnx I guess.

    I'll take a look at the links you provided.
    However this is a different sollution but is it even possible to rewrite the roles for a specific plugin?

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    Oh yes - if you start amending the plugin's code.

  11. mvanboordt
    Member
    Posted 1 year ago #

    Yes but I wanted to do this somewhere in the functions.php file.
    This would give me the opportunity to change it for all my plugins and then I don't have to change every plugin I use

Topic Closed

This topic has been closed to new replies.

About this Topic