wordpress / latest / hooks / send_retrieve_password_email.html

apply_filters( 'send_retrieve_password_email', bool $send, string $user_login, WP_User $user_data )

Filters whether to send the retrieve password email.

Description

Return false to disable sending the email.

Parameters

$send bool
Whether to send the email.
$user_login string
The username for the user.
$user_data WP_User
WP_User object.

Source

File: wp-includes/user.php. View all references

if ( ! apply_filters( 'send_retrieve_password_email', true, $user_login, $user_data ) ) {

Used By

Used By Description

Changelog

Version Description
6.0.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/send_retrieve_password_email