How to Hide Content Views Admin Menus

function plt_hide_content_views_query_and_display_post_page_menus() {
	//Hide "Content Views".
	remove_menu_page('content-views');
	//Hide "Content Views → Dashboard".
	remove_submenu_page('content-views', 'content-views');
	//Hide "Content Views → All Views".
	remove_submenu_page('content-views', 'edit.php?post_type=pt_view');
	//Hide "Content Views → Add New".
	remove_submenu_page('content-views', 'content-views-add');
	//Hide "Content Views → Layout Library".
	remove_submenu_page('content-views', 'content-views-blocklibrary');
	//Hide "Content Views → Settings".
	remove_submenu_page('content-views', 'content-views-setting');
}

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

Where do I put this code?