Make WordPress Core

Changeset 43475 for trunk


Ignore:
Timestamp:
07/17/2018 01:41:33 PM (8 years ago)
Author:
azaozz
Message:

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

Props desrosj.
Fixes #44265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r43451 r43475  
    31333133        );
    31343134
     3135        /**
     3136         * Filters the subject of the email sent when an erasure request is completed.
     3137         *
     3138         * @since 4.9.8
     3139         *
     3140         * @param string $subject    The email subject.
     3141         * @param string $sitename   The name of the site.
     3142         * @param array  $email_data {
     3143         *     Data relating to the account action email.
     3144         *
     3145         *     @type WP_User_Request $request            User request object.
     3146         *     @type string          $message_recipient  The address that the email will be sent to. Defaults
     3147         *                                               to the value of `$request->email`, but can be changed
     3148         *                                               by the `user_erasure_fulfillment_email_to` filter.
     3149         *     @type string          $privacy_policy_url Privacy policy URL.
     3150         *     @type string          $sitename           The site name sending the mail.
     3151         *     @type string          $siteurl            The site URL sending the mail.
     3152         * }
     3153         */
     3154        $subject = apply_filters( 'user_erasure_complete_email_subject', $subject, $email_data['sitename'], $email_data );
     3155
    31353156        if ( empty( $email_data['privacy_policy_url'] ) ) {
    31363157                /* translators: Do not translate SITENAME, SITEURL; those are placeholders. */
Note: See TracChangeset for help on using the changeset viewer.