Need to hide System Status and other submenu items

Forums › Forums › General › Need to hide System Status and other submenu items

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #216388

    How can I hide the submenu items such as “System Status”, “License” and “Settings”.
    Here is an example of what I tried without success.
    remove_submenu_page( 'edit-post_type-search-filter-widget','search-filter-system-status' );

    Trevor
    #216399

    I need to refer this to the plugin developer, Ross. He will get back to you.

    Ross Moderator
    #216470

    Hi Andrew

    You can add this to functions.php

    function wpcodex_adjust_the_wp_menu() {
    	$page = remove_submenu_page( 'edit.php?post_type=search-filter-widget', 'search-filter-settings' );
    	$page = remove_submenu_page( 'edit.php?post_type=search-filter-widget', 'search-filter-licence-settings' );
    	$page = remove_submenu_page( 'edit.php?post_type=search-filter-widget', 'search-filter-system-status' );
    }
    add_action( 'admin_menu', 'wpcodex_adjust_the_wp_menu', 999 );

    Thanks 🙂

    Anonymous
    #216479

    Thank you both! Exactly what I was looking for.

Viewing 4 posts – 1 through 4 (of 4 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.