wc_api_hash( string $data )
WC API – Hash.
Description Description
Parameters Parameters
- $data
-
(Required) Message to be hashed.
Return Return
(string)
Source Source
File: includes/wc-core-functions.php
function wc_api_hash( $data ) { return hash_hmac( 'sha256', $data, 'wc-api' ); }
Changelog Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |