Tips on Customizing Fastcache by Host.it

How to Hide the "FastCache Settings" Admin Menu

function plt_hide_fastcache_by_host_it_menus() {
	//Hide the "Settings → FastCache Settings" menu.
	remove_submenu_page('options-general.php', 'fastcache');
}

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

Where do I put this code?

How to Hide the "Host Caching" Meta Box

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

	//Hide the "Host Caching" meta box.
	remove_meta_box('fastcache', $screen->id, 'side');
}

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

How to Hide the "FastCache 1.6.7" Dashboard Widget

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

	//Remove the "FastCache 1.6.7" widget.
	remove_meta_box('fastcache_dashboard_widget', 'dashboard', 'normal');
}

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