Automattic\WooCommerce\StoreApi\Routes\V1

AbstractCartRoute::get_cart_token_secretprotectedWC 1.0

Gets the secret for the cart token using wp_salt.

Method of the class: AbstractCartRoute{}

No Hooks.

Returns

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_cart_token_secret();

AbstractCartRoute::get_cart_token_secret() code WC 9.9.3

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