Files
piratepoet/lib/Config/PersonalDataErasers.php
Pavel Dohnal 5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00

23 lines
576 B
PHP

<?php
namespace MailPoet\Config;
use MailPoet\Subscribers\SubscriberPersonalDataEraser;
use MailPoet\WP\Functions as WPFunctions;
class PersonalDataErasers {
function init() {
WPFunctions::get()->addFilter('wp_privacy_personal_data_erasers', [$this, 'registerSubscriberEraser']);
}
function registerSubscriberEraser($erasers) {
$erasers['mailpet-subscriber'] = [
'eraser_friendly_name' => WPFunctions::get()->__('MailPoet Subscribers', 'mailpoet'),
'callback' => [new SubscriberPersonalDataEraser(), 'erase'],
];
return $erasers;
}
}