[WORDPRESS] [Funzione] wp_check_password()

wp_check_password() (funzione WordPress) verifica se una password (in chiaro) corrisponde ad un hash. Restituisce un valore booleano.

tips&tricks

Sintassi

wp_check_password($password, $hash, $user_id[facoltativo])
parametro descrizione
$password La password da processare
$hash L’hash creato con wp_hash_password()
$user_id L’ID dell’uiiser cui si riferisce la password

Esempi

$hash = wp_hash_password("Gestiolex");
echo wp_check_password("Gestiolex", $hash); // true (1)

Fonti esterne

funzioni wordpress, wordpress

Related Articles

0 Comment

Rispondi