Make WordPress Core


Ignore:
Timestamp:
05/10/2018 03:55:51 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Notify admin via email when a request is confirmed.

Previously the admin didn't have any way to know if a pending request was ready to be processed, aside from manually checking the Export/Erase pages. Sending them an email is a much more convenient option.

Props garrett-eclipse, desrosj, iandunn.
Merges [43211] to the 4.9 branch.
See #43967.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/default-filters.php

    r43196 r43215  
    323323// Privacy
    324324add_action( 'user_request_action_confirmed', '_wp_privacy_account_request_confirmed' );
     325add_action( 'user_request_action_confirmed', '_wp_privacy_send_request_confirmation_notification', 12 ); // After request marked as completed.
    325326add_filter( 'user_request_action_confirmed_message', '_wp_privacy_account_request_confirmed_message', 10, 2 );
    326327add_filter( 'wp_privacy_personal_data_exporters', 'wp_register_comment_personal_data_exporter' );
Note: See TracChangeset for help on using the changeset viewer.