Filter hook 'allow_password_reset'

in WP Core File wp-includes/user.php at line 5119

Description

Filters whether to allow a password to be reset.

Occurrences

Filename Line Number
wp-includes/user.php 5119

Parameters

Type Name Description
bool $allow Whether to allow the password to be reset. Default true.
int $user_id The ID of the user attempting to reset a password.

PHP Doc

/**
	 * Filters whether to allow a password to be reset.
	 *
	 * @since 2.7.0
	 *
	 * @param bool $allow   Whether to allow the password to be reset. Default true.
	 * @param int  $user_id The ID of the user attempting to reset a password.
	 */