Plugin Directory

Changeset 3035370


Ignore:
Timestamp:
02/14/2024 04:38:03 AM (22 months ago)
Author:
ahortin
Message:

Declare WooCommerce HPOS Compatability

Location:
simple-catalog-for-woocommerce
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-catalog-for-woocommerce/tags/1.5.0/readme.txt

    r2951336 r3035370  
    44Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, woocommerce, catalog, catalogue
    55Requires at least: 4.6
    6 Tested up to: 6.3
     6Tested up to: 6.4
    77Requires PHP: 5.6
    8 Stable tag: 1.4.3
     8Stable tag: 1.5.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969== Changelog ==
    7070
     71= 1.5.0 =
     72- Declare compatibility with WooCommerce HPOS
     73
    7174= 1.4.3 =
    7275- Fixed Text Domain to match plugin slug so that translation Language Packs work correctly
  • simple-catalog-for-woocommerce/tags/1.5.0/simple-catalog-for-woocommerce.php

    r2951336 r3035370  
    44Plugin URI: http://maddisondesigns.com/simple-catalog-for-woocommerce
    55Description: Turn your WooCommerce store into a simple online catalog. You can disable your eCommerce functionality for all users or only for users that aren't logged in.
    6 Version: 1.4.3
     6Version: 1.5.0
    77WC requires at least: 2.6
    8 WC tested up to: 8.0
     8WC tested up to: 8.5
    99Author: Anthony Hortin
    1010Author URI: http://maddisondesigns.com
     
    448448    }
    449449}
     450
     451/**
     452 * Declare WooCommerce HPOS compatibility
     453 */
     454function scw_declare_hpos_compat() {
     455    if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     456        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     457    }
     458}
     459add_action( 'before_woocommerce_init', 'scw_declare_hpos_compat' );
  • simple-catalog-for-woocommerce/trunk/readme.txt

    r2951336 r3035370  
    44Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, woocommerce, catalog, catalogue
    55Requires at least: 4.6
    6 Tested up to: 6.3
     6Tested up to: 6.4
    77Requires PHP: 5.6
    8 Stable tag: 1.4.3
     8Stable tag: 1.5.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969== Changelog ==
    7070
     71= 1.5.0 =
     72- Declare compatibility with WooCommerce HPOS
     73
    7174= 1.4.3 =
    7275- Fixed Text Domain to match plugin slug so that translation Language Packs work correctly
  • simple-catalog-for-woocommerce/trunk/simple-catalog-for-woocommerce.php

    r2951336 r3035370  
    44Plugin URI: http://maddisondesigns.com/simple-catalog-for-woocommerce
    55Description: Turn your WooCommerce store into a simple online catalog. You can disable your eCommerce functionality for all users or only for users that aren't logged in.
    6 Version: 1.4.3
     6Version: 1.5.0
    77WC requires at least: 2.6
    8 WC tested up to: 8.0
     8WC tested up to: 8.5
    99Author: Anthony Hortin
    1010Author URI: http://maddisondesigns.com
     
    448448    }
    449449}
     450
     451/**
     452 * Declare WooCommerce HPOS compatibility
     453 */
     454function scw_declare_hpos_compat() {
     455    if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     456        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     457    }
     458}
     459add_action( 'before_woocommerce_init', 'scw_declare_hpos_compat' );
Note: See TracChangeset for help on using the changeset viewer.