Example #1
0
 /**
  * Initialization
  *
  * @return void
  */
 protected function init()
 {
     // load language files
     add_action('plugins_loaded', [&$this, 'load_language']);
     // autoloader register
     spl_autoload_register([&$this, 'autoloader']);
     // modules
     $this->ajax = Ajax_Handler::get_instance();
     $this->backend = Backend::get_instance();
     $this->frontend = Frontend::get_instance();
     // plugin loaded hook
     do_action_ref_array('wppb_loaded', [&$this]);
 }