wp-includes/pluggable.php:2715Gets the hash of the given string.
$datastring$schemestringoptional'auth'$algostringoptional'md5'string function wp_hash( $data, $scheme = 'auth', $algo = 'md5' ) { $salt = wp_salt( $scheme ); // Ensure the algorithm is supported by the hash_hmac function. if ( ! in_array( $algo, hash_hmac_algos(), true ) ) { throw new InvalidArgumentException( sprintf( /* translators: 1: Name of a cryptographic hash algorithm. 2: List of supported algorithms. */ __( 'Unsupported hashing algorithm: %1$s. Supported algorithms are: %2$s' ), $algo, implode( ', ', hash_hmac_algos() ) ) ); } return hash_hmac( $algo, $data, $salt ); }Introduced in 2.0.3. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$algo added.verified against sourcesrc/wp-includes/pluggable.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.