// WooCommerce Wholesale Prices Premium × WPML — bulk sync wholesale prices to translated products. // Add to functions.php. Visit: /wp-admin/?wwp_wpml_sync=1 as admin. Remove after use. add_action( ‘init’, function () { if ( ! current_user_can( ‘manage_options’ ) || empty( $_GET[‘wwp_wpml_sync’]…Continue reading
/* WWPP – Add the “MSRP” or “MAP” label to the regular price for wholesale customers */ add_action( ‘wp_head’, function() { global $wc_wholesale_prices_premium; $user_wholesale_role = $wc_wholesale_prices_premium->wwpp_wholesale_roles->getUserWholesaleRole(); if ( !empty( $user_wholesale_role ) ) { echo ‘ ‘; } });Continue reading
/** * Suppress WWP’s per-item cart recalculation during Wholesale Order Form batch adds. * Defers to a single recalculation at the end of each batch request instead. * * Add to functions.php or a mu-plugin. * Requires: Wholesale Prices 2.2.8+,…Continue reading
/** * Disable and Redirect the Wholesale Suite Dashboard to reduce admin bloat and improve load times. */ // 1. Remove the Dashboard submenu page from the admin menu add_action( ‘admin_menu’, ‘wws_remove_dashboard_submenu’, 9999 ); function wws_remove_dashboard_submenu() { // Parent slug…Continue reading