# metricool/2.1.1/config/user_settings.php

Metricool – Social media and site statistics, version 2.1.1. 73 lines.

- Page: https://pluginprobe.com/plugins/metricool/2.1.1/code/config/user_settings.php
- Raw: https://pluginprobe.com/plugins/metricool/2.1.1/raw/config/user_settings.php
- Modified: 2026-08-20T14:08:30+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/metricool/2.1.1/code/config/user_settings.php#L10-L20`.

```php
<?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',
        ],
    ],
];

```
