Changeset 3345259
- Timestamp:
- 08/15/2025 05:53:43 PM (6 months ago)
- Location:
- wiser-review/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wiser-review.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiser-review/trunk/readme.txt
r3345146 r3345259 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1. 78 Stable tag: 1.8 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
wiser-review/trunk/wiser-review.php
r3345146 r3345259 4 4 * Plugin URI: https://wiserreview.com 5 5 * Description: Wiser Review module helps you collect and display product reviews, star ratings, and nudges. It also automates review requests via email to boost custom engagement and conversions. 6 * Version: 1. 76 * Version: 1.8 7 7 * Author: Wiser Notify 8 8 * Requires Plugins: woocommerce … … 109 109 */ 110 110 function wiserrw_show_product_review() { 111 echo do_shortcode( '[wiserrw_product_review]' ); 111 $wiserrw_api_settings = get_option( 'wiserrw_api_settings' ); 112 if ( '1' === $wiserrw_api_settings['wiserrw_product_review_enabled'] ) { 113 echo do_shortcode( '[wiserrw_product_review]' ); 114 } 112 115 } 113 116 add_action( 'woocommerce_after_single_product_summary', 'wiserrw_show_product_review' ); … … 172 175 */ 173 176 function wiserrw_show_review_nudges_section() { 174 echo do_shortcode( '[wiserrw_product_nudges]' ); 177 $wiserrw_api_settings = get_option( 'wiserrw_api_settings' ); 178 if ( '1' === $wiserrw_api_settings['wiserrw_review_nudges_enabled'] ) { 179 echo do_shortcode( '[wiserrw_product_nudges]' ); 180 } 175 181 } 176 182 add_action( 'woocommerce_after_add_to_cart_form', 'wiserrw_show_review_nudges_section' ); … … 220 226 } 221 227 $wiserrw_api_settings = get_option( 'wiserrw_api_settings' ); 222 if ( $wiserrw_api_settings && '1' === $wiserrw_api_settings['wiserrw_live_mode_checkbox'] && '1' === $wiserrw_api_settings['wiserrw_product_review_enabled']) {228 if ( $wiserrw_api_settings && '1' === $wiserrw_api_settings['wiserrw_live_mode_checkbox'] ) { 223 229 224 230 $sku = $product->get_sku(); … … 282 288 } 283 289 $wiserrw_api_settings = get_option( 'wiserrw_api_settings' ); 284 if ( $wiserrw_api_settings && '1' === $wiserrw_api_settings['wiserrw_live_mode_checkbox'] && '1' === $wiserrw_api_settings['wiserrw_review_nudges_enabled']) {290 if ( $wiserrw_api_settings && '1' === $wiserrw_api_settings['wiserrw_live_mode_checkbox'] ) { 285 291 $wiserrw_api_data = get_option( 'wiserrw_api_data' ); 286 292 $sku = $product->get_sku();
Note: See TracChangeset
for help on using the changeset viewer.