Make WordPress Core

Changeset 43476 for branches/4.9


Ignore:
Timestamp:
07/17/2018 01:43:55 PM (6 years ago)
Author:
azaozz
Message:

Privacy: Add filter for the subject of the erasure complete notification emails.

Props desrosj.
Merges [43475] to the 4.9 branch.
Fixes #44265.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/user.php

    r43459 r43476  
    30553055    );
    30563056
     3057    /**
     3058     * Filters the subject of the email sent when an erasure request is completed.
     3059     *
     3060     * @since 4.9.8
     3061     *
     3062     * @param string $subject    The email subject.
     3063     * @param string $sitename   The name of the site.
     3064     * @param array  $email_data {
     3065     *     Data relating to the account action email.
     3066     *
     3067     *     @type WP_User_Request $request            User request object.
     3068     *     @type string          $message_recipient  The address that the email will be sent to. Defaults
     3069     *                                               to the value of `$request->email`, but can be changed
     3070     *                                               by the `user_erasure_fulfillment_email_to` filter.
     3071     *     @type string          $privacy_policy_url Privacy policy URL.
     3072     *     @type string          $sitename           The site name sending the mail.
     3073     *     @type string          $siteurl            The site URL sending the mail.
     3074     * }
     3075     */
     3076    $subject = apply_filters( 'user_erasure_complete_email_subject', $subject, $email_data['sitename'], $email_data );
     3077
    30573078    if ( empty( $email_data['privacy_policy_url'] ) ) {
    30583079        /* translators: Do not translate SITENAME, SITEURL; those are placeholders. */
Note: See TracChangeset for help on using the changeset viewer.