retrieve_password_message WordPress Filter Hook

The retrieve_password_message hook is used to filter the message that is sent to a user when they request a password reset. This hook can be used to customize the message for a specific user or to modify the message for all users.

apply_filters( 'retrieve_password_message', string $message, string $key, string $user_login, WP_User $user_data ) #

Filters the message body of the password reset mail.


Description

If the filtered message is empty, the password reset email will not be sent.


Top ↑

Parameters

$message

(string)Email message.

$key

(string)The activation key.

$user_login

(string)The username for the user.

$user_data

(WP_User)WP_User object.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.1.0Added $user_login and $user_data parameters.
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More