apply_filters( 'user_erasure_fulfillment_email_content', $content, $email_data )
参数
  • (string)
    $content
    The email content.
    Required:
  • (array)
    $email_data
    {
    Data relating to the account action email.

    @type WP_User_Request $request User request object.
    @type string $message_recipient The address that the email will be sent to. Defaults
    to the value of `$request->email`, but can be changed
    by the `user_erasure_fulfillment_email_to` filter.
    @type string $privacy_policy_url Privacy policy URL.
    @type string $sitename The site name sending the mail.
    @type string $siteurl The site URL sending the mail.
    }

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

Filters the body of the data erasure fulfillment notification.

The email is sent to a user when their data erasure request is fulfilled
by an administrator.

The following strings have a special meaning and will get replaced dynamically:

SITENAME### The name of the site.

PRIVACY_POLICY_URL### Privacy policy page URL.

SITEURL### The URL to the site.

$content = apply_filters( 'user_erasure_fulfillment_email_content', $content, $email_data );