Plugin Directory

Changeset 3179445


Ignore:
Timestamp:
10/31/2024 12:57:57 PM (5 months ago)
Author:
bogdanfix
Message:

WooCommerce HPOS compatibility;

Location:
custom-thank-you-pages-for-woocommerce
Files:
17 added
3 edited

Legend:

Unmodified
Added
Removed
  • custom-thank-you-pages-for-woocommerce/trunk/readme.txt

    r2761651 r3179445  
    33Donate link: https://paypal.me/bogdanfix
    44Tags: thank you, page, ty page, order received, custom, woocommerce
    5 Requires at least: 4.6
    6 Tested up to: 6.0
    75Requires PHP: 5.2.4
    8 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    97License: GPLv2 or later
    108License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5755== Changelog ==
    5856
     57= 1.0.1 =
     58* Declare HPOS compatibility;
     59
    5960= 1.0.0 =
    6061* initial release;
  • custom-thank-you-pages-for-woocommerce/trunk/wc-custom-thank-you-pages.php

    r2761651 r3179445  
    66Author: BogdanFix
    77Author URI: https://handsomewp.com
    8 Version: 1.0.0
     8Version: 1.0.1
    99Text Domain: ctyp
    1010Domain Path: /lang
     
    1717define( 'GB_TYP_NAME', 'Custom Thank You Pages PRO for WooCommerce' );
    1818define( 'GB_TYP_ID', 'gb_wc_typ' );
    19 define( 'GB_TYP_VER', '1.0.0' );
     19define( 'GB_TYP_VER', '1.0.1' );
    2020
    2121define( 'GB_TYP_PLUGIN_NAME', 'gb_wc_typ' );
    2222define( 'GB_TYP_URL', plugins_url() . '/' . basename( dirname( __FILE__ ) ) );
     23
     24/**
     25 * Declare HPOS compatibility
     26 * @since 1.0.1
     27 */
     28
     29 add_action('before_woocommerce_init', function()
     30 {
     31     if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) {
     32         \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true);
     33     }
     34 });
    2335
    2436/**
Note: See TracChangeset for help on using the changeset viewer.