From b400586e21ee8a299ca5b9800f28adba3279722e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20K=C3=B6n=C3=B6nen?= Date: Wed, 23 Aug 2023 11:18:57 +0300 Subject: [PATCH] Added shortcode for scripts --- readme.txt | 8 +++++--- sizeme-for-woocommerce.php | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index 762eff5..53907da 100644 --- a/readme.txt +++ b/readme.txt @@ -2,11 +2,11 @@ Contributors: sizeme Tags: sizeme, measurements, sizeguide, size guide, size recommendations Requires at least: 3.8 -Tested up to: 6.2.2 -Stable tag: 2.3.0 +Tested up to: 6.3.0 +Stable tag: 2.3.1 Requires PHP: 5.2.4 WC requires at least: 2.5 -WC tested up to: 7.9.0 +WC tested up to: 8.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -22,6 +22,8 @@ It also provides a true-to-product size guide. No more generic guides. The plugin is fully WPML compatible and also works with multiple attributes (such as size and color). +https://www.youtube.com/watch?v=RRrMBtog75A + == Features == * Integrates seamlessly with your existing store diff --git a/sizeme-for-woocommerce.php b/sizeme-for-woocommerce.php index c7fea08..7c83217 100644 --- a/sizeme-for-woocommerce.php +++ b/sizeme-for-woocommerce.php @@ -868,6 +868,7 @@ protected function init_frontend() { add_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ) ); add_action( 'woocommerce_before_single_product', array( $this, 'add_sizeme_scripts' ), 20, 0 ); + add_shortcode( 'sizeme_write_scripts', array( $this, 'add_sizeme_scripts' ) ); add_action( 'woocommerce_add_to_cart', array( $this, 'send_add_to_cart_info' ), 10, 6 ); add_action( 'woocommerce_thankyou', array( $this, 'send_order_info' ), 10, 1 );