WordPress at Your Fingertips
function is not described

WC_Customer_Data_Store_Session::delete() public WC 3.0.0

Deletes a customer from the database.

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

No Hooks.


null. Nothing.


$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session();
$WC_Customer_Data_Store_Session->delete( $customer, $args );
$customer(WC_Customer) (required) (passed by reference — &)
Customer object.
Array of args to pass to the delete method.
Default: array()


Since 3.0.0 Introduced.

Code of WC_Customer_Data_Store_Session::delete() WC 5.7.1

public function delete( &$customer, $args = array() ) {
	WC()->session->set( 'customer', null );