How to Hide the "Debug Log" Admin Menu

function plt_hide_admin_debug_tools_menus() {
	//Hide the "Tools → Debug Log" menu.
	remove_submenu_page('tools.php', 'debug-log');
}

add_action('admin_menu', 'plt_hide_admin_debug_tools_menus', 11);

Where do I put this code?