Tips on Customizing Post Grid, Slider & Carousel Ultimate – with Shortcode, Gutenberg Block & Elementor Widget

How to Hide Post Grid, Slider & Carousel Ultimate Admin Menus

function plt_hide_post_grid_carousel_ultimate_menus() {
	//Hide "Post Grid  Carousel".
	remove_menu_page('edit.php?post_type=adl-shortcode');
	//Hide "Post Grid  Carousel → All Grid/Carousel".
	remove_submenu_page('edit.php?post_type=adl-shortcode', 'edit.php?post_type=adl-shortcode');
	//Hide "Post Grid  Carousel → New Grid/Carousel".
	remove_submenu_page('edit.php?post_type=adl-shortcode', 'post-new.php?post_type=adl-shortcode');
	//Hide "Post Grid  Carousel → Usage  Support".
	remove_submenu_page('edit.php?post_type=adl-shortcode', 'support');
}

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

Where do I put this code?

How to Hide the "Settings & Shortcode Generator" Meta Box

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

	//Hide the "Settings & Shortcode Generator" meta box.
	remove_meta_box('short_metabox', $screen->id, 'normal');
}

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