# gdpr-framework/trunk/src/Components/Consent/ConsentAdmin.php

The GDPR Framework By Data443, version trunk. 21 lines.

- Page: https://pluginprobe.com/plugins/gdpr-framework/trunk/code/src/Components/Consent/ConsentAdmin.php
- Raw: https://pluginprobe.com/plugins/gdpr-framework/trunk/raw/src/Components/Consent/ConsentAdmin.php
- Modified: 2026-05-26T15:35:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gdpr-framework/trunk/code/src/Components/Consent/ConsentAdmin.php#L10-L20`.

```php
<?php

namespace Codelight\GDPR\Components\Consent;

if ( ! defined( 'ABSPATH' ) ) exit;

class ConsentAdmin
{
    public function __construct()
    {
        add_filter('gdpr/admin/tabs', [$this, 'registerAdminTab'], 20);
    }

    public function registerAdminTab($tabs)
    {
        global $gdpr;
        $tabs['consent'] = new AdminTabConsent($gdpr->Consent);

        return $tabs;
    }
}
```
