| Server IP : 52.25.153.185 / Your IP : 216.73.216.222 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/metricool/config/ |
Upload File : |
<?php
use Metricool\Features\UserSettings\Rules\FirstDayOfWeekRule;
use Metricool\Features\UserSettings\Rules\SupportedLanguageRule;
use Metricool\Features\UserSettings\Rules\TimezoneRule;
return [
'fields' => [
'blogId' => [
'storage' => 'default',
'validators' => ['string'],
],
'name' => [
'section' => 'personal',
'storage' => 'metricool',
'validators' => ['required', 'string'],
],
'lastName' => [
'section' => 'personal',
'storage' => 'metricool',
'validators' => ['string'],
],
'language' => [
'section' => 'preferences',
'storage' => 'metricool',
'validators' => [SupportedLanguageRule::class],
],
'timezone' => [
'section' => 'preferences',
'storage' => 'metricool',
'validators' => [TimezoneRule::class],
],
'firstDayOfTheWeek' => [
'section' => 'preferences',
'storage' => 'metricool',
'validators' => [FirstDayOfWeekRule::class],
],
'sendToAlternativeEmail' => [
'section' => 'account',
'validators' => ['required', 'boolean'],
'type' => 'boolean',
'storage' => 'metricool',
],
'alternativeEmail' => [
'section' => 'account',
'validators' => ['requiredIf:sendToAlternativeEmail,true', 'email'],
'storage' => 'metricool',
],
'trackingScriptActive' => [
'section' => 'tracking',
'type' => 'boolean',
'defaultValue' => false,
'validators' => ['boolean'],
],
'trackingScriptHash' => [
'section' => 'tracking',
'validators' => ['string'],
]
],
'storages' => [
'default' => [
'class' => 'OptionsStorage',
'prefix' => 'metricool_',
'casing' => 'snakeCase',
],
'metricool' => [
'class' => 'RemoteStorage',
'method' => 'patch',
'casing' => 'camelCase',
],
],
];