retrieve_password_notification_email

过滤钩子


apply_filters( 'retrieve_password_notification_email', $defaults, $key, $user_login, $user_data )
参数
  • (array)
    $defaults
    {
    The default notification email arguments. Used to build wp_mail().

    @type string $to The intended recipient – user email address.
    @type string $subject The subject of the email.
    @type string $message The body of the email.
    @type string $headers The headers of the email.
    }

    Required:
定义位置
  • wp-includes/user.php
    , line 3233
引入
6.0.0
弃用

Filters the contents of the reset password notification email sent to the user.

$notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $key, $user_login, $user_data );