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:
parent
e87ea2022b
commit
74cfa6bcdf
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue