Automattic\WooCommerce\StoreApi

Authentication::get_cart_token_secret()protectedWC 1.0

Gets the secret for the cart token using wp_salt.

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

Хуков нет.

Возвращает

Строку.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_cart_token_secret();

Код Authentication::get_cart_token_secret() WC 9.7.1

protected function get_cart_token_secret() {
	return '@' . wp_salt();
}