Introducing woocommerce_json_search_found_products filter

- Allows you to filter the merged post arrays in the Ajax request
before it is json_encode echo'ed
- Related to #1579
This commit is contained in:
Coen Jacobs 2012-10-09 15:32:49 +02:00
parent e87ea2022b
commit 74cfa6bcdf
1 changed files with 2 additions and 0 deletions

View File

@ -1142,6 +1142,8 @@ function woocommerce_json_search_products( $x = '', $post_types = array('product
}
$found_products = apply_filters( 'woocommerce_json_search_found_products', $found_products);
echo json_encode( $found_products );
die();