| @@ -13,25 +13,13 @@ | ||
| 13 | 13 | /** |
| 14 | 14 | * Init - hook into events. |
| 15 | 15 | */ |
| 16 | 16 | public function __construct() { |
| 17 | - parent::__construct(); | |
| 17 | + parent::__construct( __( 'UsersWP', 'userswp' ) ); | |
| 18 | 18 | |
| 19 | 19 | // Include supporting classes. |
| 20 | 20 | include_once 'class-uwp-privacy-exporters.php'; |
| 21 | 21 | include_once 'class-uwp-privacy-erasers.php'; |
| 22 | - | |
| 23 | - // Initialize data exporters and erasers. | |
| 24 | - add_action( 'init', array( $this, 'register_erasers_exporters' ) ); | |
| 25 | - } | |
| 26 | - | |
| 27 | - /** | |
| 28 | - * Initial registration of privacy erasers and exporters. | |
| 29 | - * | |
| 30 | - * Due to the use of translation functions, this should run only after plugins loaded. | |
| 31 | - */ | |
| 32 | - public function register_erasers_exporters() { | |
| 33 | - $this->name = __( 'UsersWP', 'userswp' ); | |
| 34 | 22 | |
| 35 | 23 | // This hook registers userswp data exporters. |
| 36 | 24 | $this->add_exporter( 'uwp-customer-data', __( 'UsersWP User Data', 'userswp' ), array( 'UsersWP_Privacy_Exporters', 'user_data_exporter' ) ); |
| 37 | 25 | |