woocommerce_api_edit_customer_data

woocommerce_api_edit_customer_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_edit_customer_data') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-customers.php line 417
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    if ( is_wp_error( $id ) ) {
        throw new WC_API_Exception( $id->get_error_code(), $id->get_error_message(), 400 );
    }
     
    $data = apply_filters( 'woocommerce_api_edit_customer_data', $data, $this );
     
    $customer = new WC_Customer( $id );
     
    // Customer email.
    if ( isset( $data['email'] ) ) {
        $customer->set_email( $data['email'] );
  • /includes/legacy/api/v3/class-wc-api-customers.php line 418
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    if ( is_wp_error( $id ) ) {
        throw new WC_API_Exception( $id->get_error_code(), $id->get_error_message(), 400 );
    }
     
    $data = apply_filters( 'woocommerce_api_edit_customer_data', $data, $this );
     
    $customer = new WC_Customer( $id );
     
    // Customer email.
    if ( isset( $data['email'] ) ) {
        $customer->set_email( $data['email'] );