Tips on Customizing Featured Image from URL

How to Hide Featured Image from URL Admin Menus

function plt_hide_featured_image_from_url_menus() {
	//Hide the "Featured Image from URL" menu.
	remove_menu_page('featured-image-from-url');
	//Hide the "Featured Image from URL → Settings" menu.
	remove_submenu_page('featured-image-from-url', 'featured-image-from-url');
	//Hide the "Featured Image from URL → Support Data" menu.
	remove_submenu_page('featured-image-from-url', 'fifu-support-data');
}

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

Where do I put this code?

How to Hide Featured Image from URL Meta Boxes

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

	//Hide the "Featured Image from URL" meta box.
	remove_meta_box('imageUrlMetaBox', $screen->id, 'side');
	//Hide the "Featured Video from URL" meta box.
	remove_meta_box('videoUrlMetaBox', $screen->id, 'side');
	//Hide the "Featured Slider from URL" meta box.
	remove_meta_box('sliderImageUrlMetaBox', $screen->id, 'side');
	//Hide the "Featured Shortcode" meta box.
	remove_meta_box('shortCodeMetaBox', $screen->id, 'side');
}

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