Privacy: Introduce filters for the headers of all the privacy-related e-mails:

* `wp_privacy_personal_data_email_headers`
* `user_request_confirmed_email_headers`
* `user_erasure_complete_email_headers`
* `user_request_action_email_headers`

Props xkon, garrett-eclipse, zaffarn, desrosj.
Fixes #44501.

git-svn-id: https://develop.svn.wordpress.org/trunk@47279 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-02-11 21:41:26 +00:00
parent b8e935b2f2
commit 1106d82f93
7 changed files with 247 additions and 4 deletions

View File

@@ -1798,6 +1798,8 @@ class Tests_User extends WP_UnitTestCase {
/**
* Testing the `wp_privacy_additional_user_profile_data` filter works.
*
* @since 5.4.0
*
* @ticket 47509
*/
function test_filter_wp_privacy_additional_user_profile_data() {
@@ -1881,6 +1883,8 @@ class Tests_User extends WP_UnitTestCase {
/**
* Filter callback to add additional profile data to the User Group on Export Requests.
*
* @since 5.4.0
*
* @ticket 47509
*
* @return array $additional_profile_data The additional user data.
@@ -1902,6 +1906,8 @@ class Tests_User extends WP_UnitTestCase {
*
* This callback should generate a `_doing_it_wrong()`.
*
* @since 5.4.0
*
* @ticket 47509
*
* @return array $additional_profile_data The additional user data.