Tips on Customizing Advanced Views – Display Posts, Custom Fields, and More

How to Hide Advanced Views Lite Admin Menus

function plt_hide_acf_views_menus() {
	//Hide the "Advanced Views" menu.
	remove_menu_page('edit.php?post_type=acf_views');
	//Hide the "Advanced Views → Views" menu.
	remove_submenu_page('edit.php?post_type=acf_views', 'edit.php?post_type=acf_views');
	//Hide the "Advanced Views → Cards" menu.
	remove_submenu_page('edit.php?post_type=acf_views', 'edit.php?post_type=acf_cards');
}

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

Where do I put this code?

How to Hide Advanced Views Lite Meta Boxes

function plt_hide_acf_views_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Shortcode" meta box.
	remove_meta_box('acf-views_shortcode', $screen->id, 'side');
	//Hide the "Assigned Groups" meta box.
	remove_meta_box('acf-views_related_groups', $screen->id, 'side');
	//Hide the "Assigned Views" meta box.
	remove_meta_box('acf-views_related_views', $screen->id, 'side');
	//Hide the "Assigned to Cards" meta box.
	remove_meta_box('acf-views_related_cards', $screen->id, 'side');
	//Hide the "Rate & Review" meta box.
	remove_meta_box('acf-views_review', $screen->id, 'side');
	//Hide the "Having issues?" meta box.
	remove_meta_box('acf-views_support', $screen->id, 'side');
	//Hide the "Shortcode" meta box.
	remove_meta_box('acf-cards_shortcode_cpt', $screen->id, 'side');
	//Hide the "Related View" meta box.
	remove_meta_box('acf-cards_related_view', $screen->id, 'side');
}

add_action('add_meta_boxes', 'plt_hide_acf_views_metaboxes', 20);