Remove random var_dump(), add filter for ajax customer details load

This commit is contained in:
Frank Martin 2013-01-22 13:06:51 +00:00
parent 3ccf806420
commit f1a3957f4c
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