How to Hide the "Title Animator" Admin Menu

function plt_hide_title_animator_menus() {
	//Hide the "Settings → Title Animator" menu.
	remove_submenu_page('options-general.php', 'title_animator');
}

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

Where do I put this code?