Automattic\WooCommerce\StoreApi
SessionHandler::__construct
Constructor for the session class.
Метод класса: SessionHandler{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$SessionHandler = new SessionHandler(); $SessionHandler->__construct();
Код SessionHandler::__construct() SessionHandler:: construct WC 10.5.1
public function __construct() {
$this->token = wc_clean( wp_unslash( $_SERVER['HTTP_CART_TOKEN'] ?? '' ) );
$this->table = $GLOBALS['wpdb']->prefix . 'woocommerce_sessions';
}