WordPress at Your Fingertips
function is not described

WC_API_Customers::delete_customer() public WC 1.0

Delete a customer

{} It's a method of the class: WC_API_Customers{}

No Hooks.

Return

Array|WP_Error.

Usage

$WC_API_Customers = new WC_API_Customers();
$WC_API_Customers->delete_customer( $id );
$id(int) (required)
the customer ID

Code of WC_API_Customers::delete_customer() WC 5.7.1

public function delete_customer( $id ) {

	$id = $this->validate_request( $id, 'customer', 'delete' );

	if ( ! is_wp_error( $id ) ) {
		return $id;
	}

	return $this->delete( $id, 'customer' );
}