Automattic\WooCommerce\StoreApi

SessionHandler::destroy_session │ public │ WC 1.0

Destroy all session data.

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

Хуков нет.

Возвращает

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

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

$SessionHandler = new SessionHandler();
$SessionHandler->destroy_session();

Код SessionHandler::destroy_session() WC 11.3.0

public function destroy_session() {
	$this->delete_session( $this->get_customer_id() );
	$this->forget_session();
}