Tips on Customizing Pixel Manager for WooCommerce – Conversion Tracking, Google Ads, GA4, TikTok, Dynamic Remarketing

How to Hide the "Pixel Manager" Admin Menu

function plt_hide_woocommerce_google_adwords_conversion_tracking_tag_menus() {
	//Hide the "Settings → Pixel Manager" menu.
	remove_submenu_page('options-general.php', 'pmw');
}

add_action('admin_menu', 'plt_hide_woocommerce_google_adwords_conversion_tracking_tag_menus', 1000000000);

Where do I put this code?

How to Hide the "Pixel Manager" Dashboard Widget

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

	//Remove the "Pixel Manager" widget.
	remove_meta_box('pmw_dashboard_overview', 'dashboard', 'normal');
}

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