# buttonizer-multifunctional-button/3.5.0/app/Legacy/Api/Api.php

Buttonizer – Floating Menus, Sticky Buttons, &amp; Popup Builder, version 3.5.0. 43 lines.

- Page: https://pluginprobe.com/plugins/buttonizer-multifunctional-button/3.5.0/code/app/Legacy/Api/Api.php
- Raw: https://pluginprobe.com/plugins/buttonizer-multifunctional-button/3.5.0/raw/app/Legacy/Api/Api.php
- Modified: 2026-08-05T17:30:26+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/buttonizer-multifunctional-button/3.5.0/code/app/Legacy/Api/Api.php#L10-L20`.

```php
<?php

/*
 * SOFTWARE LICENSE INFORMATION
 *
 * Copyright (c) 2017 Buttonizer, all rights reserved.
 *
 * This file is part of Buttonizer
 *
 * For detailed information regarding to the licensing of
 * this software, please review the license.txt or visit:
 * https://buttonizer.pro/license/
 */
namespace Buttonizer\Legacy\Api;

use Buttonizer\Api\Settings\MigrateToStandalone;
/**
 * Initialize api
 */
class Api {
    private static $authenticated = false;

    /**
     * Register API endpoints
     */
    public function __construct() {
        // Frontend api endpoints
        ( new Buttons\ApiButtons() )->registerRoute();
        // Migration route
        ( new MigrateToStandalone() )->registerRoute();
    }

    /**
     * Return error, need Buttonizer pro
     */
    public static function needButtonizerPremium() {
        return new \WP_Error('missing_premium_license', 'You do not have Buttonizer Pro.', [
            'status' => 403,
        ]);
    }

}

```
