Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_hash [ WordPress Function ]

wp_hash ( $data, $scheme = 'auth' )
Parameters:
  • (string) $data Plain text to hash
Uses:
Returns:
  • (string) Hash of $data
Defined at:



Get hash of given string.

Source


<?php
function wp_hash($data$scheme 'auth') {
    
$salt wp_salt($scheme);

    return 
hash_hmac('md5'$data$salt);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics