function plt_hide_dh_anti_adblocker_menus() { //Hide the "Settings → DH – Anti AdBlocker" menu. remove_submenu_page('options-general.php', 'dh-anti-adblocker'); } add_action('admin_menu', 'plt_hide_dh_anti_adblocker_menus', 11);
Where do I put this code?