# windpress/3.0.5/src/Api/AbstractApi.php

WindPress – Tailwind CSS integration for WordPress, version 3.0.5. 24 lines.

- Page: https://pluginprobe.com/plugins/windpress/3.0.5/code/src/Api/AbstractApi.php
- Raw: https://pluginprobe.com/plugins/windpress/3.0.5/raw/src/Api/AbstractApi.php
- Modified: 2024-08-28T04:00:22+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/windpress/3.0.5/code/src/Api/AbstractApi.php#L10-L20`.

```php
<?php

/*
 * This file is part of the WindPress package.
 *
 * (c) Joshua Gugun Siagian <suabahasa@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
declare (strict_types=1);
namespace WindPress\WindPress\Api;

use WIND_PRESS;
use WP_REST_Request;
class AbstractApi
{
    public const API_NAMESPACE = WIND_PRESS::REST_NAMESPACE;
    protected function permission_callback(WP_REST_Request $wprestRequest) : bool
    {
        return \wp_verify_nonce($wprestRequest->get_header('X-WP-Nonce'), 'wp_rest') && \current_user_can('manage_options');
    }
}

```
