Changeset 3483512
- Timestamp:
- 03/16/2026 07:27:06 AM (13 days ago)
- Location:
- wc-wholesale-manager
- Files:
-
- 14 edited
- 1 copied
-
tags/1.4.5 (copied) (copied from wc-wholesale-manager/trunk)
-
tags/1.4.5/includes/Admin/Notices.php (modified) (3 diffs)
-
tags/1.4.5/includes/Roles.php (modified) (5 diffs)
-
tags/1.4.5/includes/Store.php (modified) (10 diffs)
-
tags/1.4.5/languages/wc-wholesale-manager.pot (modified) (3 diffs)
-
tags/1.4.5/readme.txt (modified) (3 diffs)
-
tags/1.4.5/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.4.5/wc-wholesale-manager.php (modified) (2 diffs)
-
trunk/includes/Admin/Notices.php (modified) (3 diffs)
-
trunk/includes/Roles.php (modified) (5 diffs)
-
trunk/includes/Store.php (modified) (10 diffs)
-
trunk/languages/wc-wholesale-manager.pot (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wc-wholesale-manager.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-wholesale-manager/tags/1.4.5/includes/Admin/Notices.php
r3443854 r3483512 29 29 $current_time = absint( wp_date( 'U' ) ); 30 30 31 // phpcs:disable32 31 if ( ! defined( 'WCWM_PRO_VERSION' ) ) { 33 32 wc_wholesale_manager()->notices->add( 34 33 array( 35 34 'message' => __DIR__ . '/views/notices/upgrade.php', 36 'notice_id' => 'wcwm_upgrade ',35 'notice_id' => 'wcwm_upgrade_2026', 37 36 'style' => 'border-left-color:#0542fa;', 38 37 'dismissible' => false, … … 40 39 ); 41 40 } 42 // phpcs:enable43 41 44 42 // Show after 5 days. … … 48 46 'message' => __DIR__ . '/views/notices/review.php', 49 47 'dismissible' => false, 50 'notice_id' => 'wcwm_review ',48 'notice_id' => 'wcwm_review_2026', 51 49 'style' => 'border-left-color: #0542fa;', 52 50 ) -
wc-wholesale-manager/tags/1.4.5/includes/Roles.php
r3335101 r3483512 17 17 /** 18 18 * Roles constructor. 19 *20 * @since 1.0.021 19 */ 22 20 public function __construct() { 23 21 $wp_roles = new \WP_Roles(); 24 // Roles related hooks.25 22 add_action( 'init', array( __CLASS__, 'register_taxonomies' ) ); 26 23 add_action( 'created_wcwm_role', array( __CLASS__, 'created_role' ), 10, 1 ); … … 33 30 * Register taxonomies. 34 31 * 35 * @since 1.0.032 * @since 1.0.0 36 33 * @return void 37 34 */ 38 35 public static function register_taxonomies() { 39 // Register a hidden taxonomy for wholesale roles.40 36 $args = array( 41 37 'public' => false, … … 110 106 * @param int $term_id Term ID. 111 107 * 112 * @since 1.0.0108 * @since 1.0.0 113 109 * @return void 114 110 */ … … 134 130 * @param \WP_Term $term Copy of the already-deleted term. 135 131 * 136 * @since 1.0.0132 * @since 1.0.0 137 133 * @return void 138 134 */ … … 150 146 * @param array $old_value The old option value. 151 147 * 152 * @return array $value The new, unserialized option value. 148 * @since 1.0.0 149 * @return array $value The new, unserialized option value. 153 150 */ 154 151 public static function handle_role_deletion( $value, $old_value ) { 155 // find the keys that was in old values but not in value.156 152 $deleted_roles = array_diff_key( $old_value, $value ); 157 153 if ( empty( $deleted_roles ) ) { -
wc-wholesale-manager/tags/1.4.5/includes/Store.php
r3249567 r3483512 8 8 * Class Store. 9 9 * 10 * @since 1.0.0 11 * 10 * @since 1.0.0 12 11 * @package WooCommerceWholesaleManager 13 12 */ … … 16 15 /** 17 16 * Store constructor. 18 *19 * @since 1.0.020 17 */ 21 18 public function __construct() { 22 // Regular products.23 19 add_filter( 'woocommerce_product_get_price', array( $this, 'get_price' ), 99, 2 ); 24 20 add_filter( 'woocommerce_get_price_html', array( $this, 'get_price_html' ), 999, 2 ); 25 26 21 add_action( 'wp', array( $this, 'handle_tax_for_b2b2_user' ), PHP_INT_MAX ); 27 22 add_filter( 'pre_option_woocommerce_tax_display_shop', array( $this, 'handle_tax_display_for_b2b_user' ), PHP_INT_MAX, 1 ); … … 39 34 * @param \WC_Product $product The product. 40 35 * 41 * @since 1.0.036 * @since 1.0.0 42 37 * @return float 43 38 */ … … 60 55 61 56 /** 62 * Get the price htmlfor a product.63 * 64 * @param string $price_html The price html.57 * Get the price HTML for a product. 58 * 59 * @param string $price_html The price HTML. 65 60 * @param \WC_Product $product The product. 66 61 * 67 * @since 1.0.062 * @since 1.0.0 68 63 * @return string 69 64 */ … … 102 97 * Handle tax for b2b user. 103 98 * 104 * @since 1.0.099 * @since 1.0.0 105 100 * @return void 106 101 */ … … 122 117 * @param string $pre_option The pre option. 123 118 * 124 * @since 1.0.0125 * @return string $pre_option The pre option.119 * @since 1.0.0 120 * @return string $pre_option The pre option. 126 121 */ 127 122 public function handle_tax_display_for_b2b_user( $pre_option ) { … … 159 154 * @param \WC_Cart $cart The cart. 160 155 * 161 * @since 1.0.0156 * @since 1.0.0 162 157 * @return void 163 158 */ … … 186 181 * @param bool $enabled Whether coupons are enabled. 187 182 * 188 * @since 1.0.0183 * @since 1.0.0 189 184 * @return bool 190 185 */ … … 202 197 * @param array $rates The shipping methods. 203 198 * 204 * @since 1.0.0199 * @since 1.0.0 205 200 * @return array 206 201 */ … … 229 224 * @param array $gateways The payment methods. 230 225 * 231 * @since 1.0.0226 * @since 1.0.0 232 227 * @return array 233 228 */ -
wc-wholesale-manager/tags/1.4.5/languages/wc-wholesale-manager.pot
r3443854 r3483512 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Wholesale Manager 1.4. 4\n"5 "Project-Id-Version: Wholesale Manager 1.4.5\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-wholesale-manager\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-21T08:44:56+00:00\n"12 "POT-Creation-Date: 2026-03-16T07:06:44+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 792 792 msgstr "" 793 793 794 #: includes/Roles.php:1 20794 #: includes/Roles.php:116 795 795 msgid " - Wholesaler" 796 796 msgstr "" -
wc-wholesale-manager/tags/1.4.5/readme.txt
r3443854 r3483512 3 3 Tags: wholesale, wholesaler, b2b, b2c, woocommerce 4 4 Tested up to: 6.9 5 Stable tag: 1.4. 45 Stable tag: 1.4.5 6 6 License: GPLv2 or later 7 License URI: http ://www.gnu.org/licenses/gpl-2.0.html7 License URI: https://www.gnu.org/licenses/gpl-2.0.html 8 8 9 9 Manage wholesale pricing, roles, and access control for WooCommerce stores. … … 83 83 84 84 == Changelog == 85 = 1.4.5 (16th March 2026) = 86 * Fix: Minor bug fixes and improvements. 87 * Compatibility: Compatible with the latest version of WordPress (v6.9) & WooCommerce (v10.6). 88 85 89 = 1.4.4 (21st January 2026) = 86 90 * Fix: Fixed few known issues. 87 * Compatibility -Compatible with the latest version of WooCommerce (v10.4).91 * Compatibility: Compatible with the latest version of WooCommerce (v10.4). 88 92 89 93 = 1.4.3 (24th November 2025) = … … 95 99 * Fix: Fixed few known issues. 96 100 * Enhance: Update the plugin notices. 97 * Compatibility -Compatible with the latest version of WooCommerce (v10.3).101 * Compatibility: Compatible with the latest version of WooCommerce (v10.3). 98 102 99 103 = 1.4.1 (29th September 2025) = 100 * Compatibility -Compatible with the latest version of WordPress & WooCommerce.101 * Fix -Fixed few known issues.104 * Compatibility: Compatible with the latest version of WordPress & WooCommerce. 105 * Fix: Fixed few known issues. 102 106 103 107 = 1.4.0 (27th July 2025) = 104 * New -Update the plugin framework.105 * Enhancement -Improve the plugin performance by adding autoload classes.106 * New -Added some new features.107 * Fix -Fixed some known issues.108 * Compatibility -Make compatible with the latest version of WordPress & WooCommerce.108 * New: Update the plugin framework. 109 * Enhancement: Improve the plugin performance by adding autoload classes. 110 * New: Added some new features. 111 * Fix: Fixed some known issues. 112 * Compatibility: Make compatible with the latest version of WordPress & WooCommerce. 109 113 110 114 = 1.3.1 (15th May 2025) = 111 * Fix -Fix some known issues.112 * Enhancement -Update setting field descriptions and links.113 * Compatibility –Compatible with the latest WordPress version.114 * Compatibility –Compatible with the latest WooCommerce version.115 * Fix: Fix some known issues. 116 * Enhancement: Update setting field descriptions and links. 117 * Compatibility: Compatible with the latest WordPress version. 118 * Compatibility: Compatible with the latest WooCommerce version. 115 119 116 120 = 1.3.0 (3rd March 2025) = -
wc-wholesale-manager/tags/1.4.5/vendor/composer/installed.php
r3443854 r3483512 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 1833d95b7961842191fa7f2cf8cebbcc809063d2',6 'reference' => 'e80de98c28391774289ea8a380f4c09692aa86e7', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' 1833d95b7961842191fa7f2cf8cebbcc809063d2',34 'reference' => 'e80de98c28391774289ea8a380f4c09692aa86e7', 35 35 'type' => 'wordpress-plugin', 36 36 'install_path' => __DIR__ . '/../../', -
wc-wholesale-manager/tags/1.4.5/wc-wholesale-manager.php
r3443854 r3483512 4 4 * Plugin URI: https://pluginever.com/plugins/woocommerce-wholesale-manager-pro/ 5 5 * Description: Wholesale Manager for WooCommerce is the most powerful WooCommerce B2B plugin created for WooCommerce store owners. Sell products at wholesale prices to your registered B2B customers and also sell products at regular prices to your B2C customers all within your WooCommerce store. 6 * Version: 1.4. 46 * Version: 1.4.5 7 7 * Requires at least: 5.2 8 8 * Tested up to: 6.9 … … 15 15 * Domain Path: /languages 16 16 * WC requires at least: 3.0.0 17 * WC tested up to: 10. 417 * WC tested up to: 10.6 18 18 * Requires Plugins: woocommerce 19 19 * -
wc-wholesale-manager/trunk/includes/Admin/Notices.php
r3443854 r3483512 29 29 $current_time = absint( wp_date( 'U' ) ); 30 30 31 // phpcs:disable32 31 if ( ! defined( 'WCWM_PRO_VERSION' ) ) { 33 32 wc_wholesale_manager()->notices->add( 34 33 array( 35 34 'message' => __DIR__ . '/views/notices/upgrade.php', 36 'notice_id' => 'wcwm_upgrade ',35 'notice_id' => 'wcwm_upgrade_2026', 37 36 'style' => 'border-left-color:#0542fa;', 38 37 'dismissible' => false, … … 40 39 ); 41 40 } 42 // phpcs:enable43 41 44 42 // Show after 5 days. … … 48 46 'message' => __DIR__ . '/views/notices/review.php', 49 47 'dismissible' => false, 50 'notice_id' => 'wcwm_review ',48 'notice_id' => 'wcwm_review_2026', 51 49 'style' => 'border-left-color: #0542fa;', 52 50 ) -
wc-wholesale-manager/trunk/includes/Roles.php
r3335101 r3483512 17 17 /** 18 18 * Roles constructor. 19 *20 * @since 1.0.021 19 */ 22 20 public function __construct() { 23 21 $wp_roles = new \WP_Roles(); 24 // Roles related hooks.25 22 add_action( 'init', array( __CLASS__, 'register_taxonomies' ) ); 26 23 add_action( 'created_wcwm_role', array( __CLASS__, 'created_role' ), 10, 1 ); … … 33 30 * Register taxonomies. 34 31 * 35 * @since 1.0.032 * @since 1.0.0 36 33 * @return void 37 34 */ 38 35 public static function register_taxonomies() { 39 // Register a hidden taxonomy for wholesale roles.40 36 $args = array( 41 37 'public' => false, … … 110 106 * @param int $term_id Term ID. 111 107 * 112 * @since 1.0.0108 * @since 1.0.0 113 109 * @return void 114 110 */ … … 134 130 * @param \WP_Term $term Copy of the already-deleted term. 135 131 * 136 * @since 1.0.0132 * @since 1.0.0 137 133 * @return void 138 134 */ … … 150 146 * @param array $old_value The old option value. 151 147 * 152 * @return array $value The new, unserialized option value. 148 * @since 1.0.0 149 * @return array $value The new, unserialized option value. 153 150 */ 154 151 public static function handle_role_deletion( $value, $old_value ) { 155 // find the keys that was in old values but not in value.156 152 $deleted_roles = array_diff_key( $old_value, $value ); 157 153 if ( empty( $deleted_roles ) ) { -
wc-wholesale-manager/trunk/includes/Store.php
r3249567 r3483512 8 8 * Class Store. 9 9 * 10 * @since 1.0.0 11 * 10 * @since 1.0.0 12 11 * @package WooCommerceWholesaleManager 13 12 */ … … 16 15 /** 17 16 * Store constructor. 18 *19 * @since 1.0.020 17 */ 21 18 public function __construct() { 22 // Regular products.23 19 add_filter( 'woocommerce_product_get_price', array( $this, 'get_price' ), 99, 2 ); 24 20 add_filter( 'woocommerce_get_price_html', array( $this, 'get_price_html' ), 999, 2 ); 25 26 21 add_action( 'wp', array( $this, 'handle_tax_for_b2b2_user' ), PHP_INT_MAX ); 27 22 add_filter( 'pre_option_woocommerce_tax_display_shop', array( $this, 'handle_tax_display_for_b2b_user' ), PHP_INT_MAX, 1 ); … … 39 34 * @param \WC_Product $product The product. 40 35 * 41 * @since 1.0.036 * @since 1.0.0 42 37 * @return float 43 38 */ … … 60 55 61 56 /** 62 * Get the price htmlfor a product.63 * 64 * @param string $price_html The price html.57 * Get the price HTML for a product. 58 * 59 * @param string $price_html The price HTML. 65 60 * @param \WC_Product $product The product. 66 61 * 67 * @since 1.0.062 * @since 1.0.0 68 63 * @return string 69 64 */ … … 102 97 * Handle tax for b2b user. 103 98 * 104 * @since 1.0.099 * @since 1.0.0 105 100 * @return void 106 101 */ … … 122 117 * @param string $pre_option The pre option. 123 118 * 124 * @since 1.0.0125 * @return string $pre_option The pre option.119 * @since 1.0.0 120 * @return string $pre_option The pre option. 126 121 */ 127 122 public function handle_tax_display_for_b2b_user( $pre_option ) { … … 159 154 * @param \WC_Cart $cart The cart. 160 155 * 161 * @since 1.0.0156 * @since 1.0.0 162 157 * @return void 163 158 */ … … 186 181 * @param bool $enabled Whether coupons are enabled. 187 182 * 188 * @since 1.0.0183 * @since 1.0.0 189 184 * @return bool 190 185 */ … … 202 197 * @param array $rates The shipping methods. 203 198 * 204 * @since 1.0.0199 * @since 1.0.0 205 200 * @return array 206 201 */ … … 229 224 * @param array $gateways The payment methods. 230 225 * 231 * @since 1.0.0226 * @since 1.0.0 232 227 * @return array 233 228 */ -
wc-wholesale-manager/trunk/languages/wc-wholesale-manager.pot
r3443854 r3483512 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Wholesale Manager 1.4. 4\n"5 "Project-Id-Version: Wholesale Manager 1.4.5\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-wholesale-manager\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-21T08:44:56+00:00\n"12 "POT-Creation-Date: 2026-03-16T07:06:44+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 792 792 msgstr "" 793 793 794 #: includes/Roles.php:1 20794 #: includes/Roles.php:116 795 795 msgid " - Wholesaler" 796 796 msgstr "" -
wc-wholesale-manager/trunk/readme.txt
r3443854 r3483512 3 3 Tags: wholesale, wholesaler, b2b, b2c, woocommerce 4 4 Tested up to: 6.9 5 Stable tag: 1.4. 45 Stable tag: 1.4.5 6 6 License: GPLv2 or later 7 License URI: http ://www.gnu.org/licenses/gpl-2.0.html7 License URI: https://www.gnu.org/licenses/gpl-2.0.html 8 8 9 9 Manage wholesale pricing, roles, and access control for WooCommerce stores. … … 83 83 84 84 == Changelog == 85 = 1.4.5 (16th March 2026) = 86 * Fix: Minor bug fixes and improvements. 87 * Compatibility: Compatible with the latest version of WordPress (v6.9) & WooCommerce (v10.6). 88 85 89 = 1.4.4 (21st January 2026) = 86 90 * Fix: Fixed few known issues. 87 * Compatibility -Compatible with the latest version of WooCommerce (v10.4).91 * Compatibility: Compatible with the latest version of WooCommerce (v10.4). 88 92 89 93 = 1.4.3 (24th November 2025) = … … 95 99 * Fix: Fixed few known issues. 96 100 * Enhance: Update the plugin notices. 97 * Compatibility -Compatible with the latest version of WooCommerce (v10.3).101 * Compatibility: Compatible with the latest version of WooCommerce (v10.3). 98 102 99 103 = 1.4.1 (29th September 2025) = 100 * Compatibility -Compatible with the latest version of WordPress & WooCommerce.101 * Fix -Fixed few known issues.104 * Compatibility: Compatible with the latest version of WordPress & WooCommerce. 105 * Fix: Fixed few known issues. 102 106 103 107 = 1.4.0 (27th July 2025) = 104 * New -Update the plugin framework.105 * Enhancement -Improve the plugin performance by adding autoload classes.106 * New -Added some new features.107 * Fix -Fixed some known issues.108 * Compatibility -Make compatible with the latest version of WordPress & WooCommerce.108 * New: Update the plugin framework. 109 * Enhancement: Improve the plugin performance by adding autoload classes. 110 * New: Added some new features. 111 * Fix: Fixed some known issues. 112 * Compatibility: Make compatible with the latest version of WordPress & WooCommerce. 109 113 110 114 = 1.3.1 (15th May 2025) = 111 * Fix -Fix some known issues.112 * Enhancement -Update setting field descriptions and links.113 * Compatibility –Compatible with the latest WordPress version.114 * Compatibility –Compatible with the latest WooCommerce version.115 * Fix: Fix some known issues. 116 * Enhancement: Update setting field descriptions and links. 117 * Compatibility: Compatible with the latest WordPress version. 118 * Compatibility: Compatible with the latest WooCommerce version. 115 119 116 120 = 1.3.0 (3rd March 2025) = -
wc-wholesale-manager/trunk/vendor/composer/installed.php
r3443854 r3483512 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 1833d95b7961842191fa7f2cf8cebbcc809063d2',6 'reference' => 'e80de98c28391774289ea8a380f4c09692aa86e7', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' 1833d95b7961842191fa7f2cf8cebbcc809063d2',34 'reference' => 'e80de98c28391774289ea8a380f4c09692aa86e7', 35 35 'type' => 'wordpress-plugin', 36 36 'install_path' => __DIR__ . '/../../', -
wc-wholesale-manager/trunk/wc-wholesale-manager.php
r3443854 r3483512 4 4 * Plugin URI: https://pluginever.com/plugins/woocommerce-wholesale-manager-pro/ 5 5 * Description: Wholesale Manager for WooCommerce is the most powerful WooCommerce B2B plugin created for WooCommerce store owners. Sell products at wholesale prices to your registered B2B customers and also sell products at regular prices to your B2C customers all within your WooCommerce store. 6 * Version: 1.4. 46 * Version: 1.4.5 7 7 * Requires at least: 5.2 8 8 * Tested up to: 6.9 … … 15 15 * Domain Path: /languages 16 16 * WC requires at least: 3.0.0 17 * WC tested up to: 10. 417 * WC tested up to: 10.6 18 18 * Requires Plugins: woocommerce 19 19 *
Note: See TracChangeset
for help on using the changeset viewer.