function plt_hide_bandeau_cookie_menus() { //Hide the "Settings → Bandeau Cookie : RGPD/GPDR Cookie Consent" menu. remove_submenu_page('options-general.php', 'bandeau-cookie'); } add_action('admin_menu', 'plt_hide_bandeau_cookie_menus', 11);
Where do I put this code?