Merge pull request #2267 from efarem/master

Add filter to returned customer data
This commit is contained in:
Mike Jolley 2013-01-22 06:30:49 -08:00
commit dd2ed86949
1 changed files with 2 additions and 2 deletions

View File

@ -521,8 +521,6 @@ function woocommerce_save_attributes() {
}
}
var_dump($attributes);
if ( ! function_exists( 'attributes_cmp' ) ) {
function attributes_cmp( $a, $b ) {
if ( $a['position'] == $b['position'] ) return 0;
@ -937,6 +935,8 @@ function woocommerce_get_customer_details() {
$type_to_load . '_phone' => get_user_meta( $user_id, $type_to_load . '_phone', true ),
);
$customer_data = apply_filters( 'woocommerce_found_customer_details', $customer_data );
echo json_encode( $customer_data );
// Quit out