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

In this article

Filters whether to send the retrieve password email.

Description

Return false to disable sending the email.

Parameters

$sendbool
Whether to send the email.
$user_loginstring
The username for the user.
$user_dataWP_User
WP_User object.

Source

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

Changelog

VersionDescription
6.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.