ameliabooking
/
vendor
/
melograno
/
usage-tracker
/
src
/
Collectors
/
ConsentNoticeCollectorInterface.php
Common
2 months ago
Plugin
2 months ago
BaseCollector.php
2 months ago
ConsentNoticeCollectorInterface.php
2 months ago
PluginCollectorInterface.php
2 months ago
ConsentNoticeCollectorInterface.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AmeliaVendor\Melograno\UsageTracker\Collectors; |
| 6 | |
| 7 | interface ConsentNoticeCollectorInterface extends PluginCollectorInterface |
| 8 | { |
| 9 | public function getNoticeOptionName(): string; |
| 10 | |
| 11 | /** |
| 12 | * Plugin version that introduces opt-in consent; null skips upgrade migration. |
| 13 | */ |
| 14 | public function getOptInMigrationVersion(): ?string; |
| 15 | |
| 16 | public function shouldEnableConsentByDefault(): bool; |
| 17 | |
| 18 | public function shouldShowAdminNotice(): bool; |
| 19 | |
| 20 | public function shouldMigrateConsentOnUpgrade(): bool; |
| 21 | |
| 22 | /** |
| 23 | * Prefix for wp_ajax actions: {prefix}_enable_usage_tracking, {prefix}_dismiss_usage_tracking_notice. |
| 24 | * Nonce action for those handlers: {prefix}_usage_tracking_consent. |
| 25 | */ |
| 26 | public function getConsentNoticeAjaxPrefix(): string; |
| 27 | |
| 28 | public function renderConsentAdminNotice(): void; |
| 29 | } |
| 30 |