function plt_hide_http_https_remover_menus() { //Hide the "Settings → HTTP/HTTPs Removal Settings" menu. remove_submenu_page('options-general.php', 'httphttpsRemoval'); } add_action('admin_menu', 'plt_hide_http_https_remover_menus', 11);
Where do I put this code?