How to Hide the "Trust.txt" Admin Menu

function plt_hide_trust_txt_menus() {
	//Hide the "Settings → Trust.txt" menu.
	remove_submenu_page('options-general.php', 'trusttxt-settings');
}

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

Where do I put this code?