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.

wc_api_hash() code WC 8.6.1

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