addFilter('wp_privacy_personal_data_erasers', [$this, 'registerSubscriberEraser']); } public function registerSubscriberEraser($erasers) { $erasers['mailpet-subscriber'] = [ 'eraser_friendly_name' => __('MailPoet Subscribers', 'mailpoet'), 'callback' => [ContainerWrapper::getInstance()->get(SubscriberPersonalDataEraser::class), 'erase'], ]; return $erasers; } }