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:
parent
9ce892bd39
commit
8495d98275
|
@ -2020,6 +2020,8 @@ class WC_AJAX {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
$found_customers = apply_filters( 'woocommerce_json_search_found_customers', $found_customers );
|
||||
|
||||
wp_send_json( $found_customers );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue