init() public static method

public static init ( )
Beispiel #1
0
 function testAdminInit()
 {
     $admin = Admin::init();
     $this->assertTrue($admin);
 }
Beispiel #2
0
 /**
  * @codeCoverageIgnore
  */
 protected static function init()
 {
     if (class_exists('\\WP') && !defined('TIMBER_LOADED')) {
         Twig::init();
         ImageHelper::init();
         Admin::init();
         Integrations::init();
         define('TIMBER_LOADED', true);
     }
 }