Plugin Directory

Changeset 3180139


Ignore:
Timestamp:
11/01/2024 06:24:10 PM (17 months ago)
Author:
ampmode
Message:

Add HPOS support for woo-free-product-sample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • woo-free-product-sample/trunk/woo-free-product-sample.php

    r2929326 r3180139  
    99 * Plugin URI:        https://wordpress.org/plugins/woo-free-product-sample
    1010 * Description:       It allows customers to order a product sample in a simple way.
    11  * Version:           2.3.1
     11 * Version:           2.3.2
    1212 * Author:            AMP-MODE
    1313 * Author URI:        https://amplifyplugins.com
     
    1818 * Requires PHP:      5.6
    1919 * Requires at least: 4.4
    20  * Tested up to:      6.2.2
     20 * Tested up to:      6.6.1
    2121 *
    2222 * WC requires at least: 3.1
    23  * WC tested up to:   7.7.0
     23 * WC tested up to:   9.2.3
    2424 * License: GNU General Public License v3.0
    2525 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3131}
    3232
    33 define( 'WFPS_VERSION', '2.3.1' );
     33define( 'WFPS_VERSION', '2.3.2' );
    3434define( 'WFPS_MINIMUM_PHP_VERSION', '5.6.0' );
    3535define( 'WFPS_MINIMUM_WP_VERSION', '4.4' );
     
    4646
    4747include WFPS_ROOT_DIR_PATH . 'includes/woo-free-product-sample-functions.php';
     48
     49/**
     50 * Add HPOS support and compability
     51 *
     52 * @author Archie Mercader <achiles@modeeffect.com>
     53 */
     54add_action( 'before_woocommerce_init', function () {
     55    if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     56        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     57    }
     58});
    4859
    4960/**
Note: See TracChangeset for help on using the changeset viewer.