woocommerce_api_edit_customer

woocommerce_api_edit_customer

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_edit_customer') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-customers.php line 436
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
            $this->update_customer_data( $customer->get_id(), $data, $customer );
     
            $customer->save();
     
            do_action( 'woocommerce_api_edit_customer', $customer->get_id(), $data );
     
            return $this->get_customer( $customer->get_id() );
        } catch ( Exception $e ) {
            return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
        }
    }
  • /includes/legacy/api/v3/class-wc-api-customers.php line 437
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
            $this->update_customer_data( $customer->get_id(), $data, $customer );
     
            $customer->save();
     
            do_action( 'woocommerce_api_edit_customer', $customer->get_id(), $data );
     
            return $this->get_customer( $customer->get_id() );
        } catch ( Exception $e ) {
            return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
        }
    }