Нет описания

PersonalDataErasers.php 622B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace MailPoet\Config;
  3. if (!defined('ABSPATH')) exit;
  4. use MailPoet\Subscribers\SubscriberPersonalDataEraser;
  5. use MailPoet\WP\Functions as WPFunctions;
  6. class PersonalDataErasers {
  7. public function init() {
  8. WPFunctions::get()->addFilter('wp_privacy_personal_data_erasers', [$this, 'registerSubscriberEraser']);
  9. }
  10. public function registerSubscriberEraser($erasers) {
  11. $erasers['mailpet-subscriber'] = [
  12. 'eraser_friendly_name' => WPFunctions::get()->__('MailPoet Subscribers', 'mailpoet'),
  13. 'callback' => [new SubscriberPersonalDataEraser(), 'erase'],
  14. ];
  15. return $erasers;
  16. }
  17. }