Tips on Customizing Auto Featured Image (Auto Post Thumbnail)

How to Hide Auto Featured Image - Auto Post Thumbnail Admin Menus

function plt_hide_auto_post_thumbnail_menus() {
	//Hide "Auto Featured Image".
	remove_menu_page('auto-featured-image');
	//Hide "Auto Featured Image → Auto Featured Image".
	remove_submenu_page('auto-featured-image', 'auto-featured-image');
	//Hide "Auto Featured Image → About Us".
	remove_submenu_page('auto-featured-image', 'ti-about-auto_post_thumbnail');
	//Hide "Auto Featured Image → Upgrade to Pro".
	remove_submenu_page('auto-featured-image', 'https://themeisle.com/plugins/auto-featured-image/upgrade?utm_source=wpadmin&utm_medium=apt&utm_campaign=aboutfilter&utm_content=auto-featured-image');
}

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

Where do I put this code?

How to Hide the "WordPress Guides/Tutorials" Dashboard Widget

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

	//Remove the "WordPress Guides/Tutorials" widget.
	remove_meta_box('themeisle', 'dashboard', 'normal');
}

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