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