# metricool/2.1.1/app/Interfaces/SingleEndpointInterface.php

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

- Page: https://pluginprobe.com/plugins/metricool/2.1.1/code/app/Interfaces/SingleEndpointInterface.php
- Raw: https://pluginprobe.com/plugins/metricool/2.1.1/raw/app/Interfaces/SingleEndpointInterface.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/app/Interfaces/SingleEndpointInterface.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Metricool\Interfaces;

interface SingleEndpointInterface
{
    /**
     * The route name to register. Will be used as the array key for routes
     * array in: {@see EndpointManager::registerWordPressRestRoutes}
     */
    public function registerRoute(): string;

    /**
     * Arguments you can use are documented wih filter: metricool_rest_routes
     * in method: {@see EndpointManager::getPluginRoutes}
     */
    public function registerArguments(): array;

    /**
     * This method should return true if the endpoint is enabled, false
     * otherwise. Endpoint will not be registered if this method returns false:
     * {@see EndpointManager::registerEndpoints}
     */
    public function enabled(): bool;
}

```
