| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/hello-plus/modules/admin/components/ |
Upload File : |
<?php
namespace HelloPlus\Modules\Admin\Components;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
use HelloPlus\Modules\Admin\Classes\Ajax\Blank_Canvas_Option;
use HelloPlus\Modules\Admin\Classes\Ajax\Setup_Wizard;
use HelloPlus\Modules\Admin\Classes\Rest\Onboarding_Settings;
use HelloPlus\Modules\Admin\Classes\Rest\Whats_New;
class Api_Controller {
protected $endpoints = [];
protected $ajax_classes = [];
public function get_endpoint( string $endpoint ) {
if ( ! isset( $this->endpoints[ $endpoint ] ) ) {
throw new \Exception( esc_html__( 'Endpoint not found', 'hello-plus' ) );
}
return $this->endpoints[ $endpoint ];
}
public function __construct() {
$this->endpoints['onboarding-settings'] = new Onboarding_Settings();
$this->endpoints['whats-new'] = new Whats_New();
$this->ajax_classes['setup-wizard'] = new Setup_Wizard();
$this->ajax_classes['blank-canvas-option'] = new Blank_Canvas_Option();
}
}