Skip to content

Commit

Permalink
Test HPOS and new versions of WC and WP
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanPetakNeuralab committed Aug 29, 2023
1 parent d1fc45e commit f6c8d87
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: erstebank
Tags: kekspay, woocommerce, gateway, payment
Requires at least: 5.0
Tested up to: 6.1
Tested up to: 6.3
Requires PHP: 7.2
Stable tag: 1.0.12
Stable tag: 1.0.13
License: GPL v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -49,6 +49,9 @@ For more installation options check the [official WordPress documentation](https

== Changelog ==

= 1.0.13 =
* Declare compatibility with HPOS.

= 1.0.12 =
* Raise QR Code Level 5 => 6.

Expand Down
19 changes: 16 additions & 3 deletions woocommerce-gateway-kekspay.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: KEKS Pay for WooCommerce
* Plugin URI: https://www.kekspay.hr/
* Description: Incredible fast and user friendly payment method created by Erste Bank Croatia.
* Version: 1.0.12
* Version: 1.0.13
* Requires at least: 5.0
* Requires PHP: 7.2
* Author: Erste bank Croatia
Expand All @@ -14,7 +14,7 @@
* Domain Path: /languages
*
* WC requires at least: 3.3
* WC tested up to: 7.2
* WC tested up to: 8.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand Down Expand Up @@ -54,6 +54,19 @@ function kekspay_admin_notice_missing_woocommerce() {
return;
}

/**
* Declare Kekspay plugin compatible with HPOS.
*
* @return void
*/
function kekspay_hpos_compatible() {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
}
add_action( 'before_woocommerce_init', 'kekspay_hpos_compatible' );


if ( ! class_exists( 'WC_Kekspay' ) ) {
/**
* The main plugin class.
Expand Down Expand Up @@ -128,7 +141,7 @@ public static function register_constants() {
define( 'KEKSPAY_PLUGIN_ID', 'erste-kekspay-woocommerce' );
}
if ( ! defined( 'KEKSPAY_PLUGIN_VERSION' ) ) {
define( 'KEKSPAY_PLUGIN_VERSION', '1.0.12' );
define( 'KEKSPAY_PLUGIN_VERSION', '1.0.13' );
}
if ( ! defined( 'KEKSPAY_DIR_PATH' ) ) {
define( 'KEKSPAY_DIR_PATH', plugin_dir_path( __FILE__ ) );
Expand Down

0 comments on commit f6c8d87

Please sign in to comment.