HEX
Server: LiteSpeed
System: Linux premium93.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: adorhxqn (904)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/adorhxqn/public_html/wp-content/plugins/buttonizer-multifunctional-button/app/Api/Api.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;

class Api
{
    /**
     * Register 3.0 API endpoints
     */
    public function __construct()
    {
        // Site synchronization
        (new Connection\Sync())->registerRoute();
        (new Connection\Disconnect())->registerRoute();
        (new Connection\Connect())->registerRoute();

        // Plugin settings
        (new Settings\UpdateSettings())->registerRoute();

        // Editor
        (new Connection\StartEditorSession())->registerRoute();

        // Analytics
        (new Analytics\Overview())->registerRoute();

        // Legacy
        (new Utils\DeleteLegacyBackup())->registerRoute();
        (new Utils\RevertToLegacy())->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
        ]);
    }
}