Changeset 3399023
- Timestamp:
- 11/19/2025 02:08:41 PM (4 months ago)
- Location:
- wiser-review/trunk
- Files:
-
- 1 deleted
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wiser-review.php (modified) (5 diffs)
-
wordpress-org-assets (deleted)
Legend:
- Unmodified
- Added
- Removed
-
wiser-review/trunk/readme.txt
r3398906 r3399023 1 === W ooCommerce Product Reviews by WiserReview===1 === WiserReview Product Reviews for WooCommerce === 2 2 Contributors: wisernotify 3 3 Tags: woocommerce, product reviews, review plugin, review reminder, customer reviews … … 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 2. 88 Stable tag: 2.9 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Collect, manage, and display powerful product reviews and testimonials in WooCommerce using the WiserReview platform. Boost trust and conversion with automated review collection.12 Collect, manage, and display powerful product reviews and testimonials for WooCommerce stores. Boost trust and conversion with automated review collection. 13 13 14 14 == Description == 15 15 16 - **WiserReview** for WooCommerce lets you easily collect, manage, and display product reviews, engage customers with Q&A, improve SEO with rich snippets, and sync reviews to Google Shopping for more visibility. 16 **About WiserReview:** Developed by the WiserNotify team - specialists in social proof and conversion optimization tools for online stores. 17 18 WiserReview helps WooCommerce store owners collect, manage, and display product reviews, engage customers with Q&A, improve SEO with rich snippets, and increase product visibility in search results. 17 19 18 20 **🔑 Key Features** 19 21 20 - **Product Review Section**: Easily show product specific review feed with star summary, QnA & write review button. 21 - **Star Rating Count at PDP**: Display the rating count on the product detail page (PDP). 22 - **Product Review Rich Snippet**: Add JSON-LD schema markup for product reviews to improve search engine results with star ratings. 23 - **Carousel Widgets**: Showcase important reviews in a dynamic, rotating carousel to capture attention & build trust. 24 - **Review Nudges**: Show impactful reviews near the buy or add-to-cart button to encourage conversions. 25 - **Wall of Love Page**: Show customer testimonials in a dedicated page to build trust. 26 - **Product Card Count at PLP**: Show the rating count below the product title on collection or listing pages. 27 - **Customize Review Form**: Collect images, videos, review text, and personalized questions to gather detailed feedback. 28 - **Embed any WiserReview form**: Easily place multiple review forms anywhere. 29 - **Auto-fill customer info (name, email, product) in the form**: Simplify the review process with auto-filled details. 30 - **Auto-tag reviews by product, order, or campaign**: Automatically categorize reviews for better display. 31 - **Offer discounts in exchange for reviews**: Incentivize reviews by offering discounts to customers. 32 - **Integration with Google Shopping for product reviews display**: Display star ratings in Google Shopping search results. 33 - **Question and Answer feature**, allowing customers to ask and answer FAQs: Engage customers with interactive Q&A on product pages. 34 - **Import and export reviews**, including images and videos: Easily import/export reviews for better management. 35 - **Multi-language support** via WPML, Polylang, TranslatePress, and more: Reach global customers with full language support. 36 - **Moderation and approval workflows** for review submissions: Manage and moderate reviews to ensure quality content. 37 - **Customizable email templates** for review reminders and follow-ups: Personalize emails to better connect with your customers. 38 39 40 **📝Review Collection & Follow-Ups** 41 42 - **Collect reviews via email & SMS**: Automatically send review requests after a set delay. 43 - Choose review request timing for **domestic** and **international orders**. 44 - Collect reviews for a specific number of products per order, based on product price or review history. 22 - **Product Review Section**: Display product-specific review feeds with star summaries, Q&A, and write review buttons. 23 - **Star Rating Display**: Show rating counts on product detail and listing pages. 24 - **SEO Rich Snippets**: Add JSON-LD schema markup for product reviews to improve search engine results with star ratings. 25 - **Carousel Widgets**: Showcase important reviews in a dynamic, rotating carousel to capture attention and build trust. 26 - **Review Nudges**: Display impactful reviews near buy or add-to-cart buttons to encourage conversions. 27 - **Wall of Love Page**: Create a dedicated testimonials page to build trust. 28 - **Customizable Review Forms**: Collect images, videos, review text, and personalized questions to gather detailed feedback. 29 - **Flexible Form Embedding**: Easily place multiple review forms anywhere on your site using shortcodes. 30 - **Auto-fill Customer Information**: Simplify the review process with auto-filled customer details (name, email, product). 31 - **Automatic Review Tagging**: Automatically categorize reviews by product, order, or campaign. 32 - **Review Incentives**: Offer discounts to encourage customers to leave reviews. 33 - **Shopping Feed Integration**: Display star ratings in shopping search results with XML feed generation. 34 - **Interactive Q&A**: Enable customers to ask and answer product questions. 35 - **Review Import/Export**: Easily import and export reviews, including images and videos. 36 - **Multi-language Ready**: Compatible with popular translation plugins including WPML, Polylang, and TranslatePress. 37 - **Review Moderation**: Manage and moderate review submissions to ensure quality content. 38 - **Custom Email Templates**: Personalize review reminder and follow-up emails to match your brand. 39 40 **📝 Automated Review Collection** 41 42 - **Multi-Channel Collection**: Send review requests via email and SMS automatically after purchase. 43 - Configure separate timing for domestic and international orders. 44 - Customize the number of products to request reviews for per order. 45 - Prioritize by product price or existing review count. 45 46 46 - **Follow-up and Reminder Emails**: 47 - Set up **follow-up review reminders** after a specific period, with customizable email templates. 48 - Include reminders for media (like video testimonials) with a minimum star rating condition. 49 50 - **Media Follow-up for Video Testimonials**: 51 - Collect **video testimonials** by sending follow-up emails with templates for media requests. 52 - Customize the follow-up after a set number of days with star rating requirements. 53 54 - **Review Collection Templates**: 55 - Choose from multiple pre-configured email templates for review requests, reminders, and media collection. 56 57 - **Customizable Review Request Timing**: 58 - Set delays for review request emails, reminder follow-ups, and media collection emails for better timing. 59 60 - **Easy Setup**: 61 - **Pre-configured templates** for review reminders, product reviews, and media follow-ups. Just select and send! 62 63 64 == 🔎 Boost SEO with UGC == 65 66 Customer reviews are a valuable source of **user-generated SEO content**. By collecting detailed reviews, you can capture long-tail keywords that improve search visibility. Here’s how WiserReview boosts your store’s SEO: 67 68 - **Unique content**: Customer reviews naturally include long-tail keywords that enhance rankings. 69 - **User-generated content (UGC)**: Collect photos and videos to enrich your site’s content. 70 - **Rich snippets**: Show star ratings and images in Google search results. 71 - **Enhanced product data**: Add GTIN, MPN, and Brand info to boost product discoverability. 72 - **Google Shopping integration**: 47 - **Smart Follow-ups**: 48 - Schedule automated reminder emails with customizable templates. 49 - Request media testimonials with minimum star rating requirements. 50 - Set up multiple follow-up sequences to maximize response rates. 51 52 **🔎 Boost SEO with User-Generated Content** 53 54 Customer reviews provide valuable user-generated SEO content. By collecting detailed reviews, you capture long-tail keywords that improve search visibility: 55 56 - **Fresh, Unique Content**: Customer reviews naturally include diverse keywords and phrases. 57 - **Rich Media Content**: Collect customer photos and videos to enrich your site. 58 - **Enhanced Search Results**: Display star ratings and review counts in search engine results. 59 - **Product Data Enhancement**: Add GTIN, MPN, and Brand information for better discoverability. 60 - **Shopping Feed Ready**: 73 61 - Generate XML feeds for products and reviews. 74 - Display star ratings in Google Shopping search results. 75 76 Each **WiserReview widget** (Carousel, Wall, Popup, etc.) renders review text directly on the page, allowing Google to crawl and index the content for better rankings. 77 78 79 == Seamless Review Sync Across Multiple Stores == 80 81 WiserReview simplifies review management across multiple stores with global brand consistency: 82 83 - **Multi Store Sync Reviews**: Automatically display the same reviews across all stores based on SKU. 84 - **Localized Feedback**: Collect reviews in various countries and show them across all stores. 85 - **AI Review Translation**: Automatically translate reviews into multiple languages, ensuring accuracy. 86 - **Google Shopping Integration**: Sync reviews from all stores into your Google Shopping feed,. 87 88 89 == Social Media Integration – Boost Engagement == 90 91 WiserReview allows you to easily connect your Facebook and Instagram accounts to: 92 93 - **Automate Review Sharing**: Share positive reviews across your social channels. 94 - **UGC Display**: Showcase Instagram feeds in a shoppable gallery on your store. 95 96 This integration helps increase engagement and drive sales through social proof. 97 98 99 **Note:** Requires a WiserReview account to use. [Create a free account](https://app.wiserreview.com/signup). 62 - Display star ratings in shopping search results. 63 - Sync review data across multiple platforms. 64 65 Each WiserReview widget (Carousel, Wall, Popup, etc.) renders review text directly on the page, allowing search engines to crawl and index the content for improved rankings. 66 67 **🌍 Multi-Store Review Management** 68 69 WiserReview simplifies review management across multiple stores with centralized control: 70 71 - **Cross-Store Review Sync**: Display the same reviews across all your stores based on SKU matching. 72 - **Localized Customer Feedback**: Collect reviews from customers in various countries and regions. 73 - **AI-Powered Translation**: Automatically translate reviews into multiple languages for global reach. 74 - **Unified Shopping Feeds**: Consolidate reviews from all stores into centralized product feeds. 75 76 **📱 Social Media Integration** 77 78 Connect your social media accounts to maximize review visibility: 79 80 - **Automated Social Sharing**: Automatically share positive reviews to your social channels. 81 - **Shoppable Galleries**: Display social media feeds in product galleries on your store. 82 - **Cross-Platform Engagement**: Leverage customer content across multiple marketing channels. 83 84 This integration helps increase engagement and drive sales through authentic social proof. 85 86 **🔧 Developer Friendly** 87 88 - **Shortcode Support**: `[wiserreview_form id="FORM_ID"]` to embed forms anywhere. 89 - **Multiple Widget Options**: Carousel, Wall, Popup, Badge, and custom layouts. 90 - **Theme Compatibility**: Works with any properly coded WooCommerce theme. 91 - **Translation Ready**: Full support for WordPress translation standards. 92 93 **Note:** Requires a WiserReview account. [Create a free account](https://app.wiserreview.com/signup) to get started. 100 94 101 95 == External Services == 102 96 103 This plugin connects to the WiserReview API to enable its features, such as collecting, managing, and displaying product reviews and testimonials. Below is a detailed explanation of the external service usage: 104 105 1. **Service Name**: WiserReview API 106 - **Purpose**: The API is used to verify your WiserReview account, send order data, and retrieve review forms and widgets for display on your WooCommerce store. 107 - **Data Sent**: 108 - Account verification: API key is sent during the account verification process. 109 - Order data: Order details (e.g., product name, customer email, and order ID) are sent to associate reviews with specific orders. 110 - Automation data: Automation IDs and related metadata are sent to trigger workflows. 111 - **When Data is Sent**: 112 - During account verification when connecting your WiserReview account. 113 - When an order is placed, to associate reviews with the order. 114 - When review forms or widgets are loaded on your site. 115 - **Service Provider**: WiserReview 116 - **Terms of Service**: [https://wiserreview.com/terms-conditions//](https://wiserreview.com/terms-conditions/) 117 - **Privacy Policy**: [https://wiserreview.com/privacypolicy/](https://wiserreview.com/privacypolicy/) 118 119 By using this plugin, you agree to the terms and privacy policy of WiserReview. 97 This plugin connects to the WiserReview API to enable review collection, management, and display features. Understanding how data is transmitted is important for compliance and transparency. 98 99 **Service Name:** WiserReview API 100 101 **Service Provider:** WiserReview 102 **Website:** https://wiserreview.com 103 **Terms of Service:** https://wiserreview.com/terms-conditions/ 104 **Privacy Policy:** https://wiserreview.com/privacypolicy/ 105 106 **Purpose:** 107 - Verify your WiserReview account credentials 108 - Send order data to trigger automated review requests 109 - Retrieve review forms and widgets for display on your store 110 - Sync product information for review grouping 111 - Manage review submissions and responses 112 113 **Data Transmitted:** 114 - **Account Verification:** API key and workspace ID 115 - **Order Data:** Order ID, customer email, customer name, product details, order date 116 - **Product Data:** Product ID, SKU, name, price, URL, image URL 117 - **Customer Data:** Email address, name, phone number (if provided) 118 - **Automation Data:** Campaign IDs, trigger settings, email templates 119 120 **When Data is Sent:** 121 - During plugin activation when connecting your WiserReview account 122 - When a customer completes an order (if real-time sync is enabled) 123 - When you manually sync products or send bulk review requests 124 - When review forms or widgets are loaded on your site pages 125 126 By using this plugin, you agree to the WiserReview Terms of Service and Privacy Policy. All data transmission occurs over secure HTTPS connections. 120 127 121 128 == Installation == 122 129 123 1. Upload the plugin folder to the `/wp-content/plugins/` directory or install directly via WordPress Plugins screen 124 2. Activate the plugin through the 'Plugins' screen 125 3. Go to **WooCommerce > WiserReview Settings** 126 4. Connect your WiserReview account 127 5. Choose your default form and where you'd like it to appear (product page, thank you page, etc.) 128 6. Save and publish! 129 130 Use `[wiserreview_form id="FORM_ID"]` shortcode to place forms anywhere. 130 **Automatic Installation:** 131 132 1. Log in to your WordPress admin dashboard 133 2. Navigate to **Plugins > Add New** 134 3. Search for "WiserReview" 135 4. Click **Install Now** and then **Activate** 136 137 **Manual Installation:** 138 139 1. Download the plugin ZIP file 140 2. Log in to your WordPress admin dashboard 141 3. Navigate to **Plugins > Add New > Upload Plugin** 142 4. Choose the ZIP file and click **Install Now** 143 5. Click **Activate Plugin** 144 145 **Configuration:** 146 147 1. Go to **WooCommerce > WiserReview Settings** 148 2. Click **Connect Account** and enter your WiserReview API key 149 3. Configure your default review form and display settings 150 4. Choose where forms should appear (product pages, thank you pages, etc.) 151 5. Save your settings and you're ready to collect reviews! 152 153 **Shortcode Usage:** 154 155 Use [wiserrw_rating_count] , [wiserrw_product_review] to place review widgets anywhere on your site. 131 156 132 157 == Frequently Asked Questions == 133 158 134 159 = Do I need a WiserReview account? = 135 Yes. You can [sign up here](https://app.wiserreview.com/signup). It’s quick and free to get started. 136 137 = Can I show different forms for different products? = 138 Yes, you can dynamically pass product info to a single form or use multiple forms as needed. 139 140 = Does it support UGC (images/videos)? = 141 Yes – the form can include image upload fields for collecting user-generated content. 142 143 = Can I use this without WooCommerce? = 144 No – this plugin is specifically designed to enhance WooCommerce workflows. 160 161 Yes, a WiserReview account is required to use this plugin. You can [sign up for free](https://app.wiserreview.com/signup) and start collecting reviews immediately. 162 163 = Can I display different review forms on different products? = 164 165 Yes! You can create multiple review forms in your WiserReview dashboard and use shortcodes to place specific forms on specific product pages, or use a single form that dynamically adapts based on the current product. 166 167 = Does this plugin support image and video reviews? = 168 169 Yes, you can configure your review forms to include image and video upload fields, allowing customers to submit visual testimonials along with their written reviews. 170 171 = Can I use this plugin without WooCommerce? = 172 173 No, this plugin is specifically designed to integrate with WooCommerce and requires WooCommerce to be installed and activated. 174 175 = Is this compatible with my theme? = 176 177 WiserReview works with any properly coded WooCommerce theme. If you experience display issues, our support team can help with custom CSS adjustments. 178 179 = Does it work with translation plugins? = 180 181 Yes, WiserReview is compatible with popular translation plugins including WPML, Polylang, and TranslatePress, allowing you to collect and display reviews in multiple languages. 182 183 = Can I import reviews from other platforms? = 184 185 Yes, WiserReview supports importing reviews from CSV files, including reviews with images and videos. Contact support for assistance with bulk imports from specific platforms. 186 187 = How do I display reviews in search results? = 188 189 The plugin automatically generates JSON-LD schema markup for your product reviews. This allows search engines to display star ratings in search results. You can verify the implementation using Google's Rich Results Test tool. 190 191 = Can I moderate reviews before they appear? = 192 193 Yes, you can configure approval workflows in your WiserReview dashboard to review and approve submissions before they appear publicly on your site. 194 195 = Does it integrate with email marketing tools? = 196 197 WiserReview has built-in email capabilities for review requests and reminders. You can customize email templates and timing directly in your WiserReview dashboard. 145 198 146 199 == Screenshots == 147 200 148 1. Show Reviews on site & Boost Sale 149 2. Customize Review Layouts to Match Your Brand 150 3. Gather More Reviews, Effortlessly 151 4. Collect Reviews Anywhere, Anytime 152 5. Seamlessly Manage, Respond, and Share Reviews 153 6. Share Your Reviews & drive more shopper 154 201 1. Display product reviews on your site to boost sales and build trust 202 2. Customize review layouts and styling to match your brand identity 203 3. Automate review collection with scheduled email campaigns 204 4. Collect reviews anywhere with flexible form embedding options 205 5. Manage, moderate, respond to, and share customer reviews 206 6. Share authentic customer reviews to drive more traffic and conversions 155 207 156 208 == Changelog == 157 209 210 = 2.9 = 211 * Fixed: Plugin name updated to comply with WordPress.org trademark guidelines 212 * Changed: Display name from "WooCommerce Product Reviews by WiserReview" to "WiserReview Product Reviews for WooCommerce" 213 * Removed: Unnecessary load_plugin_textdomain() function call (WordPress handles translations automatically since version 4.6) 214 * Removed: WordPress.org asset files from plugin package (assets will be uploaded via SVN separately) 215 * Improved: Version numbering consistency across all plugin files 216 * Updated: All trademark references to indicate integration rather than affiliation 217 * Added: Enhanced external service disclosure section 218 * Clarified: Plugin ownership and team information 219 220 = 2.8 = 221 * Improved: Question and Answer feature optimization 222 * Fixed: Minor bugs and performance improvements 223 224 = 2.7 = 225 * Fixed: Character encoding issues in rich snippet generation 226 * Fixed: Special character handling in review schema markup 227 * Added: Separate timing options for domestic and international orders 228 * Improved: Order processing efficiency 229 230 = 2.6 = 231 * Added: SEO-friendly product review display with enhanced rich snippets 232 * Improved: User interface enhancements for better usability 233 * Updated: Schema markup generation for better search engine compatibility 234 235 = 2.5 = 236 * Added: Full support for WPML multilingual plugin 237 * Added: Full support for Polylang multilingual plugin 238 * Fixed: PHP warnings in certain server configurations 239 * Optimized: Rich snippet generation code for better performance 240 241 = 2.4 = 242 * Fixed: Schema markup no longer generated when product has zero reviews 243 * Improved: Overall plugin stability and performance 244 * Updated: Compatibility checks for latest WordPress and WooCommerce versions 245 246 = 2.3 = 247 * Optimized: Overall plugin performance and load times 248 * Updated: Plugin branding and logo assets 249 * Fixed: CSS styling conflicts with certain themes 250 * Improved: Star rating now renders on server-side for better SEO 251 252 = 2.2 = 253 * Enhanced: Rich snippet display for improved SEO 254 * Improved: Review schema markup generation 255 * Updated: Search engine optimization features 256 257 = 2.1 = 258 * Improved: Bulk send feature for historical customer data 259 * Enhanced: Past customer review request functionality 260 * Fixed: Minor bugs in bulk operations 261 262 = 1.9 = 263 * Improved: Product grouping and review synchronization 264 * Enhanced: Review feed generation capabilities 265 * Updated: Integration improvements 266 267 = 1.8 = 268 * Added: Product grouping synchronization for better review organization 269 * Added: Shopping feed generation for review display in search results 270 * Enabled: Enhanced review feed features in WiserReview dashboard 271 272 = 1.7 = 273 * Fixed: Shortcode and toggle display separation 274 * Improved: Star rating position customization 275 * Added: Login status detection support for personalized forms 276 277 = 1.6 = 278 * Fixed: Product ID and SKU ID handling issues 279 * Important: Please resubmit your API key after updating to this version 280 281 = 1.5 = 282 * Added: SKU-based review matching for cross-store functionality 283 * Added: Enhanced compatibility with shopping platforms 284 285 = 1.4 = 286 * Optimized: Code structure and performance improvements 287 * Improved: Overall plugin efficiency 288 289 = 1.3 = 290 * Added: Hook-based shortcode support for advanced customization 291 * Improved: Developer-friendly features 292 293 = 1.2 = 294 * Added: Full compatibility with Elementor page builder 295 * Improved: Theme compatibility 296 158 297 = 1.1 = 159 First release of the WiserReview WooCommerce integration plugin 160 161 = 1.1 = 162 Readme update 163 164 = 1.2 = 165 Elementor theme support added 166 167 = 1.3 = 168 Hook short code support added 169 170 = 1.4 = 171 Optimise the code 172 173 = 1.5 = 174 SKU id supported for cross store & google merchant 175 176 = 1.6 = 177 Fix- Product ID & SKU id issues, After update, submit the key again 178 179 = 1.7 = 180 Fix- we separate the shortcode and toggle display, star rating position, data-lgin support 181 182 = 1.8 = 183 Grouping sync & Google shopping review feed enabled at WiserReview account 184 185 = 1.9 = 186 Improvement-Grouping sync & Google shopping review feed enabled at WiserReview account 187 188 = 2.1 = 189 Bulk Send - Past customer data - Feature improved 190 191 = 2.2 = 192 Rich snippt & SEO improvement with reviews. 193 194 = 2.3 = 195 Optimize performance, logo, css fixed & Star rating rendering at server side. 196 197 = 2.4 = 198 Google Rich review schema-if zero review, Don't generate the schema, Other improvement 199 200 = 2.5 = 201 WPML & polylang support added. Fixed warning & optimized rich google snippt code 202 203 = 2.6 = 204 SEO-Friendly Product Reviews & Rich Snippet Display with UI Enhancements 205 206 = 2.7= 207 Fixed encoding and special character issues for Rich snippts, support added for international and domestic orders 208 209 = 2.8= 210 QnA optimized 298 * Updated: Documentation and readme file 299 * Improved: Plugin description and installation instructions 300 301 = 1.0 = 302 * Initial release: First version of WiserReview integration for WooCommerce 303 * Added: Basic review collection and display functionality 304 * Added: Email automation for review requests 305 * Added: Customizable review forms 306 * Added: Multi-widget display options -
wiser-review/trunk/wiser-review.php
r3398906 r3399023 1 1 <?php 2 2 /** 3 * Plugin Name: WiserReview for WooCommerce3 * Plugin Name: WiserReview Product Reviews for WooCommerce 4 4 * Plugin URI: https://wiserreview.com 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: 2. 85 * Description: Collect, manage, and display powerful product reviews and testimonials in WooCommerce using the WiserReview platform. Boost trust and conversion with automated review collection. 6 * Version: 2.9 7 7 * Author: Wiser Notify 8 * Author URI: https://wiserreview.com 8 9 * Requires Plugins: woocommerce 9 10 * Tested up to: 6.8 … … 12 13 * Text Domain: wiser-review 13 14 * License: GPLv2 or later 15 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 14 16 * 15 17 * @package wiser-review … … 17 19 18 20 if ( ! defined( 'ABSPATH' ) ) { 19 exit;21 exit; 20 22 } 21 23 define( 'WISERRW_PLUGIN_FILE', __FILE__ ); 22 24 define( 'WISERRW_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 23 25 define( 'WISERRW_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 24 define( 'WISERRW_PLUGIN_VERSION', 2.8);26 define( 'WISERRW_PLUGIN_VERSION', '2.9' ); 25 27 define( 'WISERRW_API_HOST', 'https://api.wiserreview.com/api/woocommerce/' ); 26 27 if ( ! function_exists( 'wiserrw_load_textdomain' ) ) {28 function wiserrw_load_textdomain() {29 load_plugin_textdomain( 'wiser-review', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );30 }31 }32 add_action( 'plugins_loaded', 'wiserrw_load_textdomain' );33 28 34 29 if ( ! function_exists( 'wiserrw_scripts' ) ) { … … 1105 1100 $translations = $trid ? apply_filters( 'wpml_get_element_translations', null, $trid, 'post_product' ) : []; 1106 1101 $current_lang = apply_filters( 'wpml_current_language', null ); 1107 if ( $translations && is_array( $translations) ) {1102 if ( $translations && is_array( $translations ) ) { 1108 1103 foreach ( $translations as $lang => $translation ) { 1109 1104 if ( ! empty( $translation->original ) ) { … … 1801 1796 return new WP_REST_Response( array( 'status' => 'background task started' ), 200 ); 1802 1797 } 1803 1804 1798 1805 1799 // === MAIN LOGIC HANDLER ===
Note: See TracChangeset
for help on using the changeset viewer.