Tips on Customizing VK Block Patterns

How to Hide VK Block Patterns Admin Menus

function plt_hide_vk_block_patterns_menus() {
	//Hide "Settings → VK Block Patterns".
	remove_submenu_page('options-general.php', 'vk_block_patterns_options');

	//Hide "VK Block Patterns".
	remove_menu_page('edit.php?post_type=vk-block-patterns');
	//Hide "VK Block Patterns → VK Block Patterns".
	remove_submenu_page('edit.php?post_type=vk-block-patterns', 'edit.php?post_type=vk-block-patterns');
	//Hide "VK Block Patterns → Add New".
	remove_submenu_page('edit.php?post_type=vk-block-patterns', 'post-new.php?post_type=vk-block-patterns');
	//Hide "VK Block Patterns → Category".
	remove_submenu_page('edit.php?post_type=vk-block-patterns', 'edit-tags.php?taxonomy=vk-block-patterns-category&post_type=vk-block-patterns');
}

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

Where do I put this code?

How to Hide the "Vektor WordPress Information" Dashboard Widget

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

	//Remove the "Vektor WordPress Information" widget.
	remove_meta_box('vk_dashboard_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_vk_block_patterns_dashboard_widgets', 20);