• Hi, is it possible to hide Plugin Load Filter from the admin menu?

    I have tried this snipped but it doesn’t work.

    add_action( 'admin_menu', 'remove_admin_menus' );
    
    //Remove top level admin menus
    function remove_admin_menus() {
    	remove_menu_page( 'plugin_load_filter_admin_manage_page' );
    	remove_menu_page( 'admin.php?page=plugin_load_filter_admin_manage_page' );
    	
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author enomoto celtislab

    (@enomoto-celtislab)

    Perhaps it’s the priority of add_action.
    Try to specify the priority.

    add_action( 'admin_menu', 'remove_admin_menus', 20 );

    By the way, this menu is only visible if you have activate_plugins permission, so there is no need to turn it off.

    Plugin Author enomoto celtislab

    (@enomoto-celtislab)

    Ooh, wrong one.
    Priority is less than 10 because we need to remove it before it is executed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Plugin Load Filter From Admin Menu’ is closed to new replies.