WC_Customer_Data_Store_Session::delete( WC_Customer $customer, array $args = array() )
Deletes a customer from the database.
Description Description
Parameters Parameters
- $customer
-
(Required) Customer object.
- $args
-
(Optional) Array of args to pass to the delete method.
Default value: array()
Source Source
File: includes/data-stores/class-wc-customer-data-store-session.php
public function delete( &$customer, $args = array() ) { WC()->session->set( 'customer', null ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |