Plugin Directory

Changeset 3345259


Ignore:
Timestamp:
08/15/2025 05:53:43 PM (6 months ago)
Author:
wisernotify
Message:

Updating trunk to version 1.8

Location:
wiser-review/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiser-review/trunk/readme.txt

    r3345146 r3345259  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 1.7
     8Stable tag: 1.8
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • wiser-review/trunk/wiser-review.php

    r3345146 r3345259  
    44 * Plugin URI: https://wiserreview.com
    55 * 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.7
     6 * Version: 1.8
    77 * Author: Wiser Notify
    88 * Requires Plugins: woocommerce
     
    109109 */
    110110function 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    }
    112115}
    113116add_action( 'woocommerce_after_single_product_summary', 'wiserrw_show_product_review' );
     
    172175 */
    173176function 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    }
    175181}
    176182add_action( 'woocommerce_after_add_to_cart_form', 'wiserrw_show_review_nudges_section' );
     
    220226    }
    221227    $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'] ) {
    223229       
    224230        $sku = $product->get_sku();
     
    282288    }
    283289    $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'] ) {
    285291        $wiserrw_api_data = get_option( 'wiserrw_api_data' );
    286292        $sku = $product->get_sku();
Note: See TracChangeset for help on using the changeset viewer.