WPDev.one
Core Function
View Source on Trac ↗

wp_password_needs_rehash()

wp_password_needs_rehash( mixed $hash, mixed $user_id = '' )

Checks whether a password hash needs to be rehashed.

Parameters 2 required

Name / Type Description
$hash
string

Hash of a password to check.

Required
(string

| int) $user_id Optional. ID of a user associated with the password.

Required

Return Value

(bool)
Whether the hash needs to be rehashed.

Function Information

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