Advanced Woo Search - Version 1.37

Version Description

  • Add 'aws_indexed_content', 'aws_indexed_title', 'aws_indexed_excerpt' filters
Download this release

Release Info

Developer Mihail Barinov
Plugin Icon 128x128 Advanced Woo Search
Version 1.37
Comparing to
See all releases

Code changes from version 1.36 to 1.37

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.36
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.36' );
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.37
7
  Author: ILLID
8
  Author URI: https://advanced-woo-search.com/
9
  Text Domain: aws
16
  exit;
17
  }
18
 
19
+ define( 'AWS_VERSION', '1.37' );
20
 
21
 
22
  define( 'AWS_DIR', dirname( __FILE__ ) );
includes/class-aws-table.php CHANGED
@@ -324,6 +324,40 @@ if ( ! class_exists( 'AWS_Table' ) ) :
324
  $content = $this->strip_shortcodes( $content );
325
  $excerpt = $this->strip_shortcodes( $excerpt );
326
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
327
  $data['terms']['title'] = $this->extract_terms( $title );
328
  $data['terms']['content'] = $this->extract_terms( $content );
329
  $data['terms']['excerpt'] = $this->extract_terms( $excerpt );
324
  $content = $this->strip_shortcodes( $content );
325
  $excerpt = $this->strip_shortcodes( $excerpt );
326
 
327
+ /**
328
+ * Filters product title before it will be indexed.
329
+ *
330
+ * @since 1.37
331
+ *
332
+ * @param string $title Product title.
333
+ * @param int $data['id'] Product id.
334
+ * @param object $product Current product object.
335
+ */
336
+ $title = apply_filters( 'aws_indexed_title', $title, $data['id'], $product );
337
+
338
+ /**
339
+ * Filters product content before it will be indexed.
340
+ *
341
+ * @since 1.37
342
+ *
343
+ * @param string $content Product content.
344
+ * @param int $data['id'] Product id.
345
+ * @param object $product Current product object.
346
+ */
347
+ $content = apply_filters( 'aws_indexed_content', $content, $data['id'], $product );
348
+
349
+ /**
350
+ * Filters product excerpt before it will be indexed.
351
+ *
352
+ * @since 1.37
353
+ *
354
+ * @param string $excerpt Product excerpt.
355
+ * @param int $data['id'] Product id.
356
+ * @param object $product Current product object.
357
+ */
358
+ $excerpt = apply_filters( 'aws_indexed_excerpt', $excerpt, $data['id'], $product );
359
+
360
+
361
  $data['terms']['title'] = $this->extract_terms( $title );
362
  $data['terms']['content'] = $this->extract_terms( $content );
363
  $data['terms']['excerpt'] = $this->extract_terms( $excerpt );
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: 4.9.4
7
- Stable tag: 1.36
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -77,6 +77,9 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
77
 
78
  == Changelog ==
79
 
 
 
 
80
  = 1.36 =
81
  * Update re-index function
82
  * Add support for custom tabs content made with Custom Product Tabs for WooCommerce plugin
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: 4.9.4
7
+ Stable tag: 1.37
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
77
 
78
  == Changelog ==
79
 
80
+ = 1.37 =
81
+ * Add 'aws_indexed_content', 'aws_indexed_title', 'aws_indexed_excerpt' filters
82
+
83
  = 1.36 =
84
  * Update re-index function
85
  * Add support for custom tabs content made with Custom Product Tabs for WooCommerce plugin