PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
← All changes | config/middleware.php +22 -0 2.0.1 → 2.1.1 View file →
@@ -1,0 +1,22 @@
1 +<?php
2 +
3 +use Metricool\Http\Middleware\HasMetricoolBlogId;
4 +use Metricool\Http\Middleware\IsMetricoolAuthenticated;
5 +use Metricool\Http\Middleware\IsWordPressAdminRequest;
6 +use Metricool\Http\Middleware\SetLocale;
7 +use Metricool\Http\Middleware\VerifyNonce;
8 +
9 +return [
10 + 'aliases' => [
11 + 'locale' => SetLocale::class,
12 + 'nonce' => VerifyNonce::class,
13 + 'admin' => IsWordPressAdminRequest::class,
14 + 'metricool:auth' => IsMetricoolAuthenticated::class,
15 + 'metricool:blog_id' => HasMetricoolBlogId::class,
16 + ],
17 + // List of Middleware that should always be executed
18 + 'default_middleware' => [
19 + 'locale',
20 + 'nonce',
21 + ],
22 +];