| 1 |
<?php |
| 2 |
|
| 3 |
namespace Codelight\GDPR\DataSubject; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) exit; |
| 6 |
|
| 7 |
class DataSubjectAdmin |
| 8 |
{ |
| 9 |
public function __construct() |
| 10 |
{ |
| 11 |
add_filter('gdpr/admin/tabs', [$this, 'registerTab'], 30); |
| 12 |
} |
| 13 |
|
| 14 |
public function registerTab($tabs) |
| 15 |
{ |
| 16 |
global $gdpr; |
| 17 |
|
| 18 |
$tabs['data-subject'] = new AdminTabDataSubject($gdpr->DataSubject); |
| 19 |
|
| 20 |
return $tabs; |
| 21 |
} |
| 22 |
} |