Fixed returned data from WC_AJAX::get_customer_details()

This commit is contained in:
Claudio Sanches 2017-04-03 03:00:07 -03:00
parent 1fe791d7d8
commit 014262c0cc
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ class WC_AJAX {
$data['date_created'] = $data['date_created'] ? $data['date_created']->getTimestamp() : null;
$data['date_modified'] = $data['date_modified'] ? $data['date_modified']->getTimestamp() : null;
$customer_data = apply_filters( 'woocommerce_ajax_get_customer_details', $customer->get_data(), $customer, $user_id );
$customer_data = apply_filters( 'woocommerce_ajax_get_customer_details', $data, $customer, $user_id );
wp_send_json( $customer_data );
}