Automattic\WooCommerce\StoreApi
SessionHandler::delete_session
Delete the session from the database.
Method of the class: SessionHandler{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SessionHandler = new SessionHandler(); $SessionHandler->delete_session( $customer_id );
- $customer_id(string) (required)
- Customer session ID.
SessionHandler::delete_session() SessionHandler::delete session code WC 10.7.0
public function delete_session( $customer_id ) {
if ( ! $customer_id ) {
return;
}
$GLOBALS['wpdb']->delete( $this->table, array( 'session_key' => $customer_id ) );
}