WordPress at a glance
function is not described

wc_api_hash() WC 2.4.0

WC API - Hash.

No Hooks.

Return

String. Nothing.

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.3.0

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