WC_Session_Handler::__construct
Constructor for the session class.
Метод класса: WC_Session_Handler{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
$WC_Session_Handler = new WC_Session_Handler(); $WC_Session_Handler->__construct();
Код WC_Session_Handler::__construct() WC Session Handler:: construct WC 10.5.1
public function __construct() {
/**
* Filter the cookie name.
*
* @since 3.6.0
*
* @param string $cookie Cookie name.
*/
$this->_cookie = (string) apply_filters( 'woocommerce_cookie', 'wp_woocommerce_session_' . COOKIEHASH );
$this->_table = $GLOBALS['wpdb']->prefix . 'woocommerce_sessions';
$this->set_session_expiration();
}