WordPress at Your Fingertips
function is not described

wc_api_hash() WC 2.4.0

WC API - Hash.

No Hooks.

Return

String.

Usage

wc_api_hash( $data );
$data(string) (required)
Message to be hashed.

Changelog

Since 2.4.0 Introduced.

Code of wc_api_hash() WC 5.8.0

function wc_api_hash( $data ) {
	return hash_hmac( 'sha256', $data, 'wc-api' );
}