PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 3.6.0
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v3.6.0
3.6.0 3.5.0 trunk 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 All 110 releases
buttonizer-multifunctional-button / app / Api / Api.php

Api.php in Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder 3.6.0, at app/Api/Api.php

50 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * SOFTWARE LICENSE INFORMATION
4 *
5 * Copyright (c) 2017 Buttonizer, all rights reserved.
6 *
7 * This file is part of Buttonizer
8 *
9 * For detailed information regarding to the licensing of
10 * this software, please review the license.txt or visit:
11 * https://buttonizer.pro/license/
12 */
13
14 namespace Buttonizer\Api;
15
16 use Buttonizer\Core\Api\BaseApi;
17
18 class Api extends BaseApi
19 {
20 /**
21 * Register API endpoints.
22 *
23 * Shared routes are registered by BaseApi.
24 * Legacy routes are plugin-specific.
25 */
26 public function __construct()
27 {
28 // Register shared routes (Connect, Disconnect, Sync, Settings, Editor, Analytics)
29 parent::__construct();
30
31 // Legacy (plugin-specific)
32 // We can't call the Freemius split conditional here to remove these routes because we don't have the Freemius
33 // object available outside Legacy folder.
34 (new Utils\DeleteLegacyBackup())->registerRoute();
35
36 // The way back to an absorbed plugin's old system
37 (new Utils\UseLegacyModule())->registerRoute();
38 }
39
40 /**
41 * Return error, need Buttonizer pro
42 */
43 public static function needButtonizerPremium()
44 {
45 return new \WP_Error('missing_premium_license', 'You do not have Buttonizer Pro.', [
46 'status' => 403
47 ]);
48 }
49 }
50