Plugin Directory

Changeset 3483512


Ignore:
Timestamp:
03/16/2026 07:27:06 AM (13 days ago)
Author:
pluginever
Message:

Update to version 1.4.5

Location:
wc-wholesale-manager
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wc-wholesale-manager/tags/1.4.5/includes/Admin/Notices.php

    r3443854 r3483512  
    2929        $current_time   = absint( wp_date( 'U' ) );
    3030
    31         // phpcs:disable
    3231        if ( ! defined( 'WCWM_PRO_VERSION' ) ) {
    3332            wc_wholesale_manager()->notices->add(
    3433                array(
    3534                    'message'     => __DIR__ . '/views/notices/upgrade.php',
    36                     'notice_id'   => 'wcwm_upgrade',
     35                    'notice_id'   => 'wcwm_upgrade_2026',
    3736                    'style'       => 'border-left-color:#0542fa;',
    3837                    'dismissible' => false,
     
    4039            );
    4140        }
    42         // phpcs:enable
    4341
    4442        // Show after 5 days.
     
    4846                    'message'     => __DIR__ . '/views/notices/review.php',
    4947                    'dismissible' => false,
    50                     'notice_id'   => 'wcwm_review',
     48                    'notice_id'   => 'wcwm_review_2026',
    5149                    'style'       => 'border-left-color: #0542fa;',
    5250                )
  • wc-wholesale-manager/tags/1.4.5/includes/Roles.php

    r3335101 r3483512  
    1717    /**
    1818     * Roles constructor.
    19      *
    20      * @since 1.0.0
    2119     */
    2220    public function __construct() {
    2321        $wp_roles = new \WP_Roles();
    24         // Roles related hooks.
    2522        add_action( 'init', array( __CLASS__, 'register_taxonomies' ) );
    2623        add_action( 'created_wcwm_role', array( __CLASS__, 'created_role' ), 10, 1 );
     
    3330     * Register taxonomies.
    3431     *
    35      * @since 1.0.0
     32     * @since  1.0.0
    3633     * @return void
    3734     */
    3835    public static function register_taxonomies() {
    39         // Register a hidden taxonomy for wholesale roles.
    4036        $args = array(
    4137            'public'             => false,
     
    110106     * @param int $term_id Term ID.
    111107     *
    112      * @since 1.0.0
     108     * @since  1.0.0
    113109     * @return void
    114110     */
     
    134130     * @param \WP_Term $term Copy of the already-deleted term.
    135131     *
    136      * @since 1.0.0
     132     * @since  1.0.0
    137133     * @return void
    138134     */
     
    150146     * @param array $old_value The old option value.
    151147     *
    152      * @return  array $value The new, unserialized option value.
     148     * @since  1.0.0
     149     * @return array $value The new, unserialized option value.
    153150     */
    154151    public static function handle_role_deletion( $value, $old_value ) {
    155         // find the keys that was in old values but not in value.
    156152        $deleted_roles = array_diff_key( $old_value, $value );
    157153        if ( empty( $deleted_roles ) ) {
  • wc-wholesale-manager/tags/1.4.5/includes/Store.php

    r3249567 r3483512  
    88 * Class Store.
    99 *
    10  * @since 1.0.0
    11  *
     10 * @since   1.0.0
    1211 * @package WooCommerceWholesaleManager
    1312 */
     
    1615    /**
    1716     * Store constructor.
    18      *
    19      * @since 1.0.0
    2017     */
    2118    public function __construct() {
    22         // Regular products.
    2319        add_filter( 'woocommerce_product_get_price', array( $this, 'get_price' ), 99, 2 );
    2420        add_filter( 'woocommerce_get_price_html', array( $this, 'get_price_html' ), 999, 2 );
    25 
    2621        add_action( 'wp', array( $this, 'handle_tax_for_b2b2_user' ), PHP_INT_MAX );
    2722        add_filter( 'pre_option_woocommerce_tax_display_shop', array( $this, 'handle_tax_display_for_b2b_user' ), PHP_INT_MAX, 1 );
     
    3934     * @param \WC_Product $product The product.
    4035     *
    41      * @since 1.0.0
     36     * @since  1.0.0
    4237     * @return float
    4338     */
     
    6055
    6156    /**
    62      * Get the price html for 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.
    6560     * @param \WC_Product $product The product.
    6661     *
    67      * @since 1.0.0
     62     * @since  1.0.0
    6863     * @return string
    6964     */
     
    10297     * Handle tax for b2b user.
    10398     *
    104      * @since 1.0.0
     99     * @since  1.0.0
    105100     * @return void
    106101     */
     
    122117     * @param   string $pre_option The pre option.
    123118     *
    124      * @since 1.0.0
    125      * @return  string $pre_option The pre option.
     119     * @since  1.0.0
     120     * @return string $pre_option The pre option.
    126121     */
    127122    public function handle_tax_display_for_b2b_user( $pre_option ) {
     
    159154     * @param \WC_Cart $cart The cart.
    160155     *
    161      * @since 1.0.0
     156     * @since  1.0.0
    162157     * @return void
    163158     */
     
    186181     * @param bool $enabled Whether coupons are enabled.
    187182     *
    188      * @since 1.0.0
     183     * @since  1.0.0
    189184     * @return bool
    190185     */
     
    202197     * @param array $rates The shipping methods.
    203198     *
    204      * @since 1.0.0
     199     * @since  1.0.0
    205200     * @return array
    206201     */
     
    229224     * @param array $gateways The payment methods.
    230225     *
    231      * @since 1.0.0
     226     * @since  1.0.0
    232227     * @return array
    233228     */
  • wc-wholesale-manager/tags/1.4.5/languages/wc-wholesale-manager.pot

    r3443854 r3483512  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Wholesale Manager 1.4.4\n"
     5"Project-Id-Version: Wholesale Manager 1.4.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-wholesale-manager\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-01-21T08:44:56+00:00\n"
     12"POT-Creation-Date: 2026-03-16T07:06:44+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    792792msgstr ""
    793793
    794 #: includes/Roles.php:120
     794#: includes/Roles.php:116
    795795msgid " - Wholesaler"
    796796msgstr ""
  • wc-wholesale-manager/tags/1.4.5/readme.txt

    r3443854 r3483512  
    33Tags: wholesale, wholesaler, b2b, b2c, woocommerce
    44Tested up to: 6.9
    5 Stable tag: 1.4.4
     5Stable tag: 1.4.5
    66License: GPLv2 or later
    7 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     7License URI: https://www.gnu.org/licenses/gpl-2.0.html
    88
    99Manage wholesale pricing, roles, and access control for WooCommerce stores.
     
    8383
    8484== 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
    8589= 1.4.4 (21st January 2026) =
    8690* 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).
    8892
    8993= 1.4.3 (24th November 2025) =
     
    9599* Fix: Fixed few known issues.
    96100* 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).
    98102
    99103= 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.
    102106
    103107= 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.
    109113
    110114= 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.
    115119
    116120= 1.3.0 (3rd March 2025) =
  • wc-wholesale-manager/tags/1.4.5/vendor/composer/installed.php

    r3443854 r3483512  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '1833d95b7961842191fa7f2cf8cebbcc809063d2',
     6        'reference' => 'e80de98c28391774289ea8a380f4c09692aa86e7',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => '1833d95b7961842191fa7f2cf8cebbcc809063d2',
     34            'reference' => 'e80de98c28391774289ea8a380f4c09692aa86e7',
    3535            'type' => 'wordpress-plugin',
    3636            'install_path' => __DIR__ . '/../../',
  • wc-wholesale-manager/tags/1.4.5/wc-wholesale-manager.php

    r3443854 r3483512  
    44 * Plugin URI:           https://pluginever.com/plugins/woocommerce-wholesale-manager-pro/
    55 * 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.4
     6 * Version:              1.4.5
    77 * Requires at least:    5.2
    88 * Tested up to:         6.9
     
    1515 * Domain Path:          /languages
    1616 * WC requires at least: 3.0.0
    17  * WC tested up to:      10.4
     17 * WC tested up to:      10.6
    1818 * Requires Plugins:     woocommerce
    1919 *
  • wc-wholesale-manager/trunk/includes/Admin/Notices.php

    r3443854 r3483512  
    2929        $current_time   = absint( wp_date( 'U' ) );
    3030
    31         // phpcs:disable
    3231        if ( ! defined( 'WCWM_PRO_VERSION' ) ) {
    3332            wc_wholesale_manager()->notices->add(
    3433                array(
    3534                    'message'     => __DIR__ . '/views/notices/upgrade.php',
    36                     'notice_id'   => 'wcwm_upgrade',
     35                    'notice_id'   => 'wcwm_upgrade_2026',
    3736                    'style'       => 'border-left-color:#0542fa;',
    3837                    'dismissible' => false,
     
    4039            );
    4140        }
    42         // phpcs:enable
    4341
    4442        // Show after 5 days.
     
    4846                    'message'     => __DIR__ . '/views/notices/review.php',
    4947                    'dismissible' => false,
    50                     'notice_id'   => 'wcwm_review',
     48                    'notice_id'   => 'wcwm_review_2026',
    5149                    'style'       => 'border-left-color: #0542fa;',
    5250                )
  • wc-wholesale-manager/trunk/includes/Roles.php

    r3335101 r3483512  
    1717    /**
    1818     * Roles constructor.
    19      *
    20      * @since 1.0.0
    2119     */
    2220    public function __construct() {
    2321        $wp_roles = new \WP_Roles();
    24         // Roles related hooks.
    2522        add_action( 'init', array( __CLASS__, 'register_taxonomies' ) );
    2623        add_action( 'created_wcwm_role', array( __CLASS__, 'created_role' ), 10, 1 );
     
    3330     * Register taxonomies.
    3431     *
    35      * @since 1.0.0
     32     * @since  1.0.0
    3633     * @return void
    3734     */
    3835    public static function register_taxonomies() {
    39         // Register a hidden taxonomy for wholesale roles.
    4036        $args = array(
    4137            'public'             => false,
     
    110106     * @param int $term_id Term ID.
    111107     *
    112      * @since 1.0.0
     108     * @since  1.0.0
    113109     * @return void
    114110     */
     
    134130     * @param \WP_Term $term Copy of the already-deleted term.
    135131     *
    136      * @since 1.0.0
     132     * @since  1.0.0
    137133     * @return void
    138134     */
     
    150146     * @param array $old_value The old option value.
    151147     *
    152      * @return  array $value The new, unserialized option value.
     148     * @since  1.0.0
     149     * @return array $value The new, unserialized option value.
    153150     */
    154151    public static function handle_role_deletion( $value, $old_value ) {
    155         // find the keys that was in old values but not in value.
    156152        $deleted_roles = array_diff_key( $old_value, $value );
    157153        if ( empty( $deleted_roles ) ) {
  • wc-wholesale-manager/trunk/includes/Store.php

    r3249567 r3483512  
    88 * Class Store.
    99 *
    10  * @since 1.0.0
    11  *
     10 * @since   1.0.0
    1211 * @package WooCommerceWholesaleManager
    1312 */
     
    1615    /**
    1716     * Store constructor.
    18      *
    19      * @since 1.0.0
    2017     */
    2118    public function __construct() {
    22         // Regular products.
    2319        add_filter( 'woocommerce_product_get_price', array( $this, 'get_price' ), 99, 2 );
    2420        add_filter( 'woocommerce_get_price_html', array( $this, 'get_price_html' ), 999, 2 );
    25 
    2621        add_action( 'wp', array( $this, 'handle_tax_for_b2b2_user' ), PHP_INT_MAX );
    2722        add_filter( 'pre_option_woocommerce_tax_display_shop', array( $this, 'handle_tax_display_for_b2b_user' ), PHP_INT_MAX, 1 );
     
    3934     * @param \WC_Product $product The product.
    4035     *
    41      * @since 1.0.0
     36     * @since  1.0.0
    4237     * @return float
    4338     */
     
    6055
    6156    /**
    62      * Get the price html for 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.
    6560     * @param \WC_Product $product The product.
    6661     *
    67      * @since 1.0.0
     62     * @since  1.0.0
    6863     * @return string
    6964     */
     
    10297     * Handle tax for b2b user.
    10398     *
    104      * @since 1.0.0
     99     * @since  1.0.0
    105100     * @return void
    106101     */
     
    122117     * @param   string $pre_option The pre option.
    123118     *
    124      * @since 1.0.0
    125      * @return  string $pre_option The pre option.
     119     * @since  1.0.0
     120     * @return string $pre_option The pre option.
    126121     */
    127122    public function handle_tax_display_for_b2b_user( $pre_option ) {
     
    159154     * @param \WC_Cart $cart The cart.
    160155     *
    161      * @since 1.0.0
     156     * @since  1.0.0
    162157     * @return void
    163158     */
     
    186181     * @param bool $enabled Whether coupons are enabled.
    187182     *
    188      * @since 1.0.0
     183     * @since  1.0.0
    189184     * @return bool
    190185     */
     
    202197     * @param array $rates The shipping methods.
    203198     *
    204      * @since 1.0.0
     199     * @since  1.0.0
    205200     * @return array
    206201     */
     
    229224     * @param array $gateways The payment methods.
    230225     *
    231      * @since 1.0.0
     226     * @since  1.0.0
    232227     * @return array
    233228     */
  • wc-wholesale-manager/trunk/languages/wc-wholesale-manager.pot

    r3443854 r3483512  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Wholesale Manager 1.4.4\n"
     5"Project-Id-Version: Wholesale Manager 1.4.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-wholesale-manager\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-01-21T08:44:56+00:00\n"
     12"POT-Creation-Date: 2026-03-16T07:06:44+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    792792msgstr ""
    793793
    794 #: includes/Roles.php:120
     794#: includes/Roles.php:116
    795795msgid " - Wholesaler"
    796796msgstr ""
  • wc-wholesale-manager/trunk/readme.txt

    r3443854 r3483512  
    33Tags: wholesale, wholesaler, b2b, b2c, woocommerce
    44Tested up to: 6.9
    5 Stable tag: 1.4.4
     5Stable tag: 1.4.5
    66License: GPLv2 or later
    7 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     7License URI: https://www.gnu.org/licenses/gpl-2.0.html
    88
    99Manage wholesale pricing, roles, and access control for WooCommerce stores.
     
    8383
    8484== 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
    8589= 1.4.4 (21st January 2026) =
    8690* 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).
    8892
    8993= 1.4.3 (24th November 2025) =
     
    9599* Fix: Fixed few known issues.
    96100* 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).
    98102
    99103= 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.
    102106
    103107= 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.
    109113
    110114= 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.
    115119
    116120= 1.3.0 (3rd March 2025) =
  • wc-wholesale-manager/trunk/vendor/composer/installed.php

    r3443854 r3483512  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '1833d95b7961842191fa7f2cf8cebbcc809063d2',
     6        'reference' => 'e80de98c28391774289ea8a380f4c09692aa86e7',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => '1833d95b7961842191fa7f2cf8cebbcc809063d2',
     34            'reference' => 'e80de98c28391774289ea8a380f4c09692aa86e7',
    3535            'type' => 'wordpress-plugin',
    3636            'install_path' => __DIR__ . '/../../',
  • wc-wholesale-manager/trunk/wc-wholesale-manager.php

    r3443854 r3483512  
    44 * Plugin URI:           https://pluginever.com/plugins/woocommerce-wholesale-manager-pro/
    55 * 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.4
     6 * Version:              1.4.5
    77 * Requires at least:    5.2
    88 * Tested up to:         6.9
     
    1515 * Domain Path:          /languages
    1616 * WC requires at least: 3.0.0
    17  * WC tested up to:      10.4
     17 * WC tested up to:      10.6
    1818 * Requires Plugins:     woocommerce
    1919 *
Note: See TracChangeset for help on using the changeset viewer.