Version Description
- Dev - Add aws_search_query_array filter
- Dev - Send page url with ajax request
Download this release
Release Info
Developer | Mihail Barinov |
Plugin | Advanced Woo Search |
Version | 1.67 |
Comparing to | |
See all releases |
Code changes from version 1.66 to 1.67
- advanced-woo-search.php +2 -2
- assets/js/common.js +2 -1
- includes/class-aws-search.php +6 -0
- readme.txt +5 -1
advanced-woo-search.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
-
Version: 1.
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: aws
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( 'AWS_VERSION', '1.
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
+
Version: 1.67
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: aws
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( 'AWS_VERSION', '1.67' );
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
assets/js/common.js
CHANGED
@@ -75,7 +75,8 @@
|
|
75 |
action: 'aws_action',
|
76 |
keyword : searchFor,
|
77 |
page: 0,
|
78 |
-
lang: d.lang
|
|
|
79 |
};
|
80 |
|
81 |
requests.push(
|
75 |
action: 'aws_action',
|
76 |
keyword : searchFor,
|
77 |
page: 0,
|
78 |
+
lang: d.lang,
|
79 |
+
pageurl: window.location.href
|
80 |
};
|
81 |
|
82 |
requests.push(
|
includes/class-aws-search.php
CHANGED
@@ -405,6 +405,12 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
405 |
$query['lang'] = $wpdb->prepare( " AND ( lang LIKE %s OR lang = '' )", $current_lang );
|
406 |
}
|
407 |
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
|
409 |
$sql = "SELECT
|
410 |
distinct ID,
|
405 |
$query['lang'] = $wpdb->prepare( " AND ( lang LIKE %s OR lang = '' )", $current_lang );
|
406 |
}
|
407 |
|
408 |
+
/**
|
409 |
+
* Filter search query parameters
|
410 |
+
* @since 1.67
|
411 |
+
* @param array $query Query parameters
|
412 |
+
*/
|
413 |
+
$query = apply_filters( 'aws_search_query_array', $query );
|
414 |
|
415 |
$sql = "SELECT
|
416 |
distinct ID,
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.1
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -102,6 +102,10 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
105 |
= 1.66 =
|
106 |
* Update search page support
|
107 |
|
4 |
Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.1
|
7 |
+
Stable tag: 1.67
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 1.67 =
|
106 |
+
* Dev - Add aws_search_query_array filter
|
107 |
+
* Dev - Send page url with ajax request
|
108 |
+
|
109 |
= 1.66 =
|
110 |
* Update search page support
|
111 |
|