Add filter to output from json_search_customers

Add filter to admin ajax customer search, to allow modification of search result output via plugin or theme.
This commit is contained in:
ConfusedTA 2016-03-10 12:15:44 +00:00
parent 9ce892bd39
commit 8495d98275
1 changed files with 2 additions and 0 deletions

View File

@ -2021,6 +2021,8 @@ class WC_AJAX {
} }
} }
$found_customers = apply_filters( 'woocommerce_json_search_found_customers', $found_customers );
wp_send_json( $found_customers ); wp_send_json( $found_customers );
} }