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.

Return

null. Nothing.

Usage

$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.
$args(array)
Array of args to pass to the delete method.
Default: array()

Changelog

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 );
}