woocommerce_api_create_customer

woocommerce_api_create_customer

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_api_create_customer') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-customers.php line 381
    			// Added customer data.
    			$this->update_customer_data( $customer->get_id(), $data, $customer );
    			$customer->save();
    
    			do_action( 'woocommerce_api_create_customer', $customer->get_id(), $data );
    
    			$this->server->send_status( 201 );
    
    			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 382
    			// Added customer data.
    			$this->update_customer_data( $customer->get_id(), $data, $customer );
    			$customer->save();
    
    			do_action( 'woocommerce_api_create_customer', $customer->get_id(), $data );
    
    			$this->server->send_status( 201 );
    
    			return $this->get_customer( $customer->get_id() );
    		} catch ( Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );