WPDev.one
Core Function
View Source on Trac ↗

wp_is_password_reset_allowed_for_user()

wp_is_password_reset_allowed_for_user( mixed $user )

Checks if password reset is allowed for a specific user.

Parameters 1 required

Name / Type Description
(int

| WP_User) $user The user to check.

Required

Return Value

((bool)
| WP_Error) True if allowed, false or WP_Error otherwise.

Function Information

Since Version
6.3.0
Source File
wp-includes/user.php
Advertisement