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)