Plugin Directory

Changeset 3061783


Ignore:
Timestamp:
03/31/2024 03:59:02 PM (2 years ago)
Author:
techsarai
Message:

Compatibility with woocommerce high performance order storage feature, and woocommerce 8.7.0

Location:
user-role-based-shipping-method
Files:
4 edited
5 copied

Legend:

Unmodified
Added
Removed
  • user-role-based-shipping-method/tags/3.1.0/includes/class-pvalley-user-role-based-shipping.php

    r2021442 r3061783  
    2020            $this->init();
    2121            add_filter( 'plugin_action_links_' . plugin_basename( PVALLEY_URBS_PLUGIN_FILE ), __CLASS__. '::plugin_action_links' );
     22            // Compatibility with High Performance order storage feature of WooCommerce
     23            add_action('before_woocommerce_init', array($this, 'hposCompatibility'));
     24        }
     25
     26        /**
     27         * High performance order storage feature compatibility.
     28         *
     29         * hpos - High performance order storage
     30         *
     31         * @see https://woo.com/document/high-performance-order-storage/
     32         * @return void
     33         */
     34        public function hposCompatibility( ) {
     35            if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     36                \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', PVALLEY_URBS_PLUGIN_FILE, true );
     37            }
    2238        }
    2339
  • user-role-based-shipping-method/tags/3.1.0/pvalley-user-role-based-shipping.php

    r3048574 r3061783  
    44 * Plugin URI:
    55 * Description: Hide/show shipping methods based on user role and destination country.
    6  * Version: 3.0.0
     6 * Version: 3.1.0
    77 * Author: Pluginvalley
    88 * Author URI:
     
    1111 * Requires at least: 5.0
    1212 * WC requires at least: 3.0.0
    13  * WC tested up to: 8.6.1
     13 * WC tested up to: 8.7
    1414 */
    1515
  • user-role-based-shipping-method/tags/3.1.0/readme.txt

    r3048588 r3061783  
    66Requires at least: 5.0
    77Tested up to: 6.4
    8 Stable tag: 3.0.0
     8Stable tag: 3.1.0
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    140140 * Tested with WooCommerce 8.6.1
    141141
     142= 3.1.0 =
     143 * Compatibility with WooCommerce high performance order storage feature
     144 * Tested with WooCommerce 8.7.0
     145
    142146== Upgrade Notice ==
    143147
    144 = 3.0.0 =
    145  * Feature to hide all the shipping methods, and show only free shipping method, when free shipping is available during checkout
    146  * Tested with WooCommerce 8.6.1
     148= 3.1.0 =
     149 * Compatibility with WooCommerce high performance order storage feature
     150 * Tested with WooCommerce 8.7.0
  • user-role-based-shipping-method/trunk/includes/class-pvalley-user-role-based-shipping.php

    r2021442 r3061783  
    2020            $this->init();
    2121            add_filter( 'plugin_action_links_' . plugin_basename( PVALLEY_URBS_PLUGIN_FILE ), __CLASS__. '::plugin_action_links' );
     22            // Compatibility with High Performance order storage feature of WooCommerce
     23            add_action('before_woocommerce_init', array($this, 'hposCompatibility'));
     24        }
     25
     26        /**
     27         * High performance order storage feature compatibility.
     28         *
     29         * hpos - High performance order storage
     30         *
     31         * @see https://woo.com/document/high-performance-order-storage/
     32         * @return void
     33         */
     34        public function hposCompatibility( ) {
     35            if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     36                \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', PVALLEY_URBS_PLUGIN_FILE, true );
     37            }
    2238        }
    2339
  • user-role-based-shipping-method/trunk/pvalley-user-role-based-shipping.php

    r3048574 r3061783  
    44 * Plugin URI:
    55 * Description: Hide/show shipping methods based on user role and destination country.
    6  * Version: 3.0.0
     6 * Version: 3.1.0
    77 * Author: Pluginvalley
    88 * Author URI:
     
    1111 * Requires at least: 5.0
    1212 * WC requires at least: 3.0.0
    13  * WC tested up to: 8.6.1
     13 * WC tested up to: 8.7
    1414 */
    1515
  • user-role-based-shipping-method/trunk/readme.txt

    r3048588 r3061783  
    66Requires at least: 5.0
    77Tested up to: 6.4
    8 Stable tag: 3.0.0
     8Stable tag: 3.1.0
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    140140 * Tested with WooCommerce 8.6.1
    141141
     142= 3.1.0 =
     143 * Compatibility with WooCommerce high performance order storage feature
     144 * Tested with WooCommerce 8.7.0
     145
    142146== Upgrade Notice ==
    143147
    144 = 3.0.0 =
    145  * Feature to hide all the shipping methods, and show only free shipping method, when free shipping is available during checkout
    146  * Tested with WooCommerce 8.6.1
     148= 3.1.0 =
     149 * Compatibility with WooCommerce high performance order storage feature
     150 * Tested with WooCommerce 8.7.0
Note: See TracChangeset for help on using the changeset viewer.