_hash_hmac ( $algo, $data, $key, $raw_output = false )

  • (string) $algo Hash algorithm. Accepts 'md5' or 'sha1'.
  • (string) $data Data to be hashed.
  • (string) $key Secret key to use for generating the hash.
  • (bool) $raw_output Optional. Whether to output raw binary data (true), or lowercase hexits (false). Default false.
  • (string|false) The hash in output determined by `$raw_output`. False if `$algo` is unknown or invalid.
Defined at:


Internal compat function to mimic hash_hmac().

Related Functions

has_meta, has_action, has_tag, wp_hash, hash_equals

Top Google Results

User discussions

wpseek mobile