function plt_hide_custom_javascript_editor_menus() { //Hide the "Appearance → Custom JavaScript" menu. remove_submenu_page('themes.php', 'custom-javascript'); } add_action('admin_menu', 'plt_hide_custom_javascript_editor_menus', 11);
Where do I put this code?