function plt_hide_mainwp_child_menus() { //Hide the "Settings → MainWP Child" menu. remove_submenu_page('options-general.php', 'mainwp_child_tab'); } add_action('admin_menu', 'plt_hide_mainwp_child_menus', 11);
Where do I put this code?