Automattic\WooCommerce\StoreApi

SessionHandler::delete_session │ public │ WC 1.0

Delete the session from the database.

Метод класса: SessionHandler{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

$SessionHandler = new SessionHandler();
$SessionHandler->delete_session( $customer_id );
$customer_id(строка) (обязательный)
Customer session ID.

Код SessionHandler::delete_session() WC 11.3.0

public function delete_session( $customer_id ) {
	if ( ! $customer_id ) {
		return;
	}
	$GLOBALS['wpdb']->delete( $this->table, array( 'session_key' => $customer_id ) );
}