• Resolved Elly Post

    (@ellytronic)


    Hi there,
    I’m running this plugin on MU (it works great!) and I am managing the options through the theme. I’m having a hard time removing access to this page, and obviously I don’t want to edit the plugin itself.

    I’ve tried this:
    remove_submenu_page( “options-general.php”, “options-general.php?page=bootstrap-shortcodes/bootstrap-shortcodes.php” );

    Alas, no luck. Do you have any suggestions on how I can remove this option or change access to only allow those with “manage_network” role capability?

    Thanks!

    http://wordpress.org/plugins/bootstrap-shortcodes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    try the following code

    function my_remove_menu_pages() {
        remove_submenu_page('options-general.php', 'bootstrap-shortcodes/bootstrap-shortcodes.php');
    }
    add_action( 'admin_menu', 'my_remove_menu_pages');
    Thread Starter Elly Post

    (@ellytronic)

    That worked great. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove settings page’ is closed to new replies.