Plugin Directory

Changeset 3373155


Ignore:
Timestamp:
10/05/2025 02:42:56 PM (5 months ago)
Author:
DimaW
Message:

tested with wordpress 6.8.3 and woocommerce 10.2.2 and added support for woocommerce functions compability

Location:
woo-title-limit/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • woo-title-limit/trunk/.gitignore

    r2237047 r3373155  
    11.git
    22.idea
     3.DS_Store
  • woo-title-limit/trunk/admin/class-woo-title-limit-admin.php

    r2237047 r3373155  
    100100        wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/woo-title-limit-admin.js', [ 'jquery' ], $this->version, FALSE );
    101101
     102    }
     103    /**
     104     * Declare compatibility with WooCommerce HPOS (High-Performance Order Storage)
     105     *
     106     * @since 2.0.4
     107     */
     108    public function set_hpos_support_for_wc() {
     109        if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
     110            \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', plugin_dir_path( dirname( __FILE__ ) ) . 'woo-title-limit.php', true );
     111            \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', plugin_dir_path( dirname( __FILE__ ) ) . 'woo-title-limit.php', true );
     112        }
    102113    }
    103114
  • woo-title-limit/trunk/includes/class-woo-title-limit.php

    r2237047 r3373155  
    164164        $this->loader->add_action( 'admin_menu', $plugin_admin, 'create_settings_menu', 9 );
    165165        $this->loader->add_action( 'plugin_action_links_woo-title-limit/woo-title-limit.php', $plugin_admin, 'plugin_settings_link', 9 );
     166        $this->loader->add_action( 'before_woocommerce_init', $plugin_admin, 'set_hpos_support_for_wc' );
    166167
    167168    }
  • woo-title-limit/trunk/readme.txt

    r2654527 r3373155  
    44Tags: woocommerce, product title, title, length, limit, shop
    55Requires at least: 3.0.1
    6 Tested up to: 5.8.3
    7 Stable tag: 2.0.3
     6Tested up to: 6.8.3
     7Stable tag: 2.0.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444
    4545== Changelog ==
     46
     47= 2.0.4 =
     48
     49* tested up to WordPress 6.8.3
     50* tested up to WooCommerce 10.2.2
    4651
    4752= 2.0.3 =
  • woo-title-limit/trunk/woo-title-limit.php

    r2654527 r3373155  
    1717 * Plugin URI:        https://www.dimitri-wolf.de
    1818 * Description:       Allows you to set product title lengths for WooCommerce products.
    19  * Version:           2.0.3
     19 * Version:           2.0.4
    2020 * Author: Dima W.
    2121 * Author URI:        https://www.dimitri-wolf.de
     
    2525 * Text Domain: woo-title-limit
    2626 * Domain Path: /languages
    27  *
     27 *
     28 * WC tested up to: 10.2.2
    2829 * WC requires at least: 3.0
    29  * WC tested up to: 4.6.1
    3030 */
    3131
     
    3535}
    3636
    37 define( 'WOO_TITLE_LIMIT_VERSION', '2.0.3' );
     37define( 'WOO_TITLE_LIMIT_VERSION', '2.0.4' );
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.