More work on this, incomplete!
Validate Build / validate-build (push) Canceled after 0s

This commit is contained in:
Cooper Dalrymple
2026-10-06 17:00:20 -05:00
parent 5f702470cc
commit b8902b4afa
23 changed files with 2138 additions and 175 deletions
+14 -6
View File
@@ -18,14 +18,10 @@ defined('ABSPATH') || exit;
final class Config {
use Singleton;
protected function __construct() {
}
public function get_config(): array
{
// See https://klaro.org/docs/integration/annotated-configuration
$config = [
return apply_filters('ogre_consent_config', [
'elementID' => Plugin::get_id(),
'storageMethod' => 'localStorage',
'storageName' => Plugin::get_id(),
@@ -34,9 +30,21 @@ final class Config {
'mustConsent' => true,
'acceptAll' => true,
'hideLearnMore' => true,
'disablePoweredBy' => true,
'services' => Services::instance()->get_config(),
]);
}
public static function get_purposes(): array
{
return [
'advertising' => Plugin::__('Advertising'),
'analytics' => Plugin::__('Analytics'),
'livechat' => Plugin::__('Livechat'),
'marketing' => Plugin::__('Marketing'),
'security' => Plugin::__('Security'),
'styling' => Plugin::__('Styling'),
];
return apply_filters('ogre_consent_config', $config);
}
}