Tips on Customizing Featured Image from URL (FIFU)

How to Hide Featured Image from URL (FIFU) Admin Menus

function plt_hide_featured_image_from_url_menus() {
	//Hide "FIFU".
	remove_menu_page('featured-image-from-url');
	//Hide "FIFU → Settings".
	remove_submenu_page('featured-image-from-url', 'featured-image-from-url');
	//Hide "FIFU → Cloud".
	remove_submenu_page('featured-image-from-url', 'fifu-cloud');
	//Hide "FIFU → Troubleshooting".
	remove_submenu_page('featured-image-from-url', 'fifu-troubleshooting');
	//Hide "FIFU → Status".
	remove_submenu_page('featured-image-from-url', 'fifu-support-data');
	//Hide "FIFU → Upgrade to PRO".
	remove_submenu_page('featured-image-from-url', '');
}

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

Where do I put this code?

How to Hide the "Featured image" Meta Box

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

	//Hide the "Featured image" meta box.
	remove_meta_box('imageUrlMetaBox', $screen->id, 'side');
}

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