Automattic\WooCommerce\StoreApi
SessionHandler::destroy_session
Destroy all session data.
Метод класса: SessionHandler{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$SessionHandler = new SessionHandler(); $SessionHandler->destroy_session();
Код SessionHandler::destroy_session() SessionHandler::destroy session WC 11.3.0
public function destroy_session() {
$this->delete_session( $this->get_customer_id() );
$this->forget_session();
}