| Server IP : 104.21.25.182 / Your IP : 216.73.217.123 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/learndash-hub/src/ |
Upload File : |
<?php
namespace LearnDash\Hub;
use LearnDash\Hub\Controller\Main_Controller;
use LearnDash\Hub\Controller\Projects_Controller;
use LearnDash\Hub\Controller\RemoteBanners;
use LearnDash\Hub\Controller\Settings_Controller;
use LearnDash\Hub\Controller\Signin_Controller;
use LearnDash\Hub\Traits\License;
use LearnDash\Hub\Traits\Permission;
/**
* Everything start from here
*
* Class Boot
*
* @package Hub
*/
class Boot {
use Permission;
use License;
/**
* Run all the triggers in init runtime.
*/
public function start() {
if ( $this->is_signed_on() ) {
if ( ! $this->is_user_allowed() ) {
return;
}
// later we will check the permissions for each modules.
( new Main_Controller() );
( new Projects_Controller() )->register_hooks();
( new Settings_Controller() );
} else {
( new Signin_Controller() );
}
( new RemoteBanners() )->register_hooks();
}
/**
* Run the setup scripts when the plugin activating.
*/
public function install() {
}
/**
* Load the text domain
*
* @return void
*/
public function load_plugin_textdomain() {
load_plugin_textdomain( 'learndash-hub', false, basename( dirname( __DIR__ ) ) . '/languages/' );
}
/**
* Clear all the cache
*/
public function deactivate() {
delete_site_option( 'learndash-hub-projects-api' );
delete_site_option( 'learndash_hub_update_plugins_cache' );
delete_site_option( $this->get_license_status_option_name() );
}
}