Tips on Customizing Management App for WooCommerce – Order notifications, Order management, Lead management, Uptime Monitoring

How to Hide WEmanage App Worker Admin Menus

function plt_hide_wemanage_app_worker_menus() {
	//Hide the "WeManage" menu.
	remove_menu_page('wemanage_worker_settings');
	//Hide the "WeManage → ⚙️ Settings" menu.
	remove_submenu_page('wemanage_worker_settings', 'wemanage_worker_settings');
	//Hide the "WeManage → All Promotions" menu.
	remove_submenu_page('wemanage_worker_settings', 'edit.php?post_type=wmp_promotion');
}

add_action('admin_menu', 'plt_hide_wemanage_app_worker_menus', 10000);

Where do I put this code?

How to Hide the "📱 WeManage — Sync Status" Dashboard Widget

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

	//Remove the "📱 WeManage — Sync Status" widget.
	remove_meta_box('nswmw_sync_status', 'dashboard', 'normal');
}

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