PluginProbe ʕ •ᴥ•ʔ
Products Compare for WooCommerce / 3.6.2.6
Products Compare for WooCommerce v3.6.2.6
3.6.2.8 3.6.2.7 trunk 1.0.1 1.0.10 1.0.10.1 1.0.11 1.0.11.1 1.0.12 1.0.13 1.0.13.1 1.0.2 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 3.5 3.5.0.1 3.5.0.2 3.5.1 3.5.1.1 3.5.1.2 3.5.1.3 3.5.1.4 3.5.1.5 3.5.1.6 3.5.1.7 3.5.2 3.5.2.1 3.5.2.2 3.5.2.3 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.7.1 3.5.7.2 3.5.7.3 3.5.7.4 3.5.7.5 3.5.7.6 3.5.7.7 3.5.7.8 3.5.7.9 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.6.2.1 3.6.2.2 3.6.2.3 3.6.2.4 3.6.2.5 3.6.2.6
products-compare-for-woocommerce / berocket / libraries / wpml_compatibility.php
products-compare-for-woocommerce / berocket / libraries Last commit date
addons 2 months ago templates 2 months ago check_init.php 2 months ago feature_tab.php 2 months ago popup.php 2 months ago tippy.php 2 months ago tutorial.php 2 months ago wpml_compatibility.php 2 months ago
wpml_compatibility.php
15 lines
1 <?php
2 add_filter('woocommerce_json_search_found_products', 'BR_woocommerce_json_search_found_products');
3 function BR_woocommerce_json_search_found_products($products) {
4 if( ! empty($_GET['is_berocket']) ) {
5 $new_products = $products;
6 $products = array();
7 $current_language = apply_filters( 'wpml_current_language', NULL );
8 foreach($new_products as $product_id => $product_name) {
9 $product_id = apply_filters( 'wpml_object_id', $product_id, 'product', true, $current_language );
10 $products[$product_id] = get_the_title($product_id). ' (#'.$product_id.')';
11 }
12 }
13 return $products;
14 }
15