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

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

- Page: https://pluginprobe.com/plugins/buttonizer-multifunctional-button/3.5.0/code/app/Api/Api.php
- Raw: https://pluginprobe.com/plugins/buttonizer-multifunctional-button/3.5.0/raw/app/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/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\Api;

use Buttonizer\Core\Api\BaseApi;

class Api extends BaseApi
{
    /**
     * Register API endpoints.
     *
     * Shared routes are registered by BaseApi.
     * Legacy routes are plugin-specific.
     */
    public function __construct()
    {
        // Register shared routes (Connect, Disconnect, Sync, Settings, Editor, Analytics)
        parent::__construct();

        // Legacy (plugin-specific)
        // We can't call the Freemius split conditional here to remove these routes because we don't have the Freemius
        // object available outside Legacy folder.
        (new Utils\DeleteLegacyBackup())->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
        ]);
    }
}

```
