WPDev.one

wp_hash()

wp_hash( mixed $data, mixed $scheme = 'auth', mixed $algo = 'md5' )

Gets the hash of the given string.

Parameters 1 required

Name / Type Description
$data
string

Plain text to hash.

Required
$scheme
string

Authentication scheme (auth, secure_auth, logged_in, nonce).

$algo
string

Hashing algorithm to use. Default: 'md5'.

Return Value

(string)
Hash of $data.

Function Information

Since Version
2.0.3
Source File
wp-includes/pluggable.php
Advertisement