WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp hash

Description

This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead.

Get hash of given string.

Usage

<?php wp_hash$data$scheme ?>

Parameters

$data
(string) (required) Plain text to hash.
Default: None
$scheme
(unknown) (optional)
Default: 'auth'

Return Values

(string) 
Hash of $data

Examples

Notes

  • This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead.
  • Uses: wp_salt() Get WordPress salt.

Change Log

Since: 2.0.4

Source File

wp_hash() is located in wp-includes/pluggable.php.

Related

See also index of Function Reference and index of Template Tags.