WC_Session_Handler::hash
Hash a value for the session cookie integrity tag.
Method of the class: WC_Session_Handler{}
No Hooks.
Returns
string. Hashed value.
Usage
// private - for code of main (parent) class only $result = $this->hash( $message );
- $message(string) (required)
- Value to hash.
WC_Session_Handler::hash() WC Session Handler::hash code WC 11.1.1
private function hash( string $message ) {
return hash_hmac( 'md5', $message, wp_hash( $message ) );
}