• Resolved MrRonTour

    (@mrrontour)


    Hi,

    thx for this cool plugin.

    Non admin user can change the plugin settings sitewide. I can’t find the role to change this. Can you help?

    Thx and greetings

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

    (@codepeople)

    Hello @mrrontour

    If you want that only the administrators can edit loading page’s settings, please, follow the steps below:

    1. Open the “/wp-content/plugins/loading-page/loading-page.php” file with the text editor of your choice.

    2. Go to the piece of code:

    
    add_options_page('Loading Page', 'Loading Page', 'edit_posts', basename(__FILE__), 'loading_page_settings_page');
    

    3. And edit it as follows:

    
    add_options_page('Loading Page', 'Loading Page', 'manage_options', basename(__FILE__), 'loading_page_settings_page');
    

    and that’s all.
    Best regards.

    Works fine, thx.

    Plugin Author codepeople

    (@codepeople)

    Hello @mrrontour

    It has been a pleasure.

    Best regards.

    Plugin Author codepeople

    (@codepeople)

    Hello @mrrontour

    I’ve included the modification in the official distribution of the plugin.

    Best regards.

    Cool, that’s great. Thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘User role’ is closed to new replies.