init() public static method

public static init ( )
Example #1
0
 function testAdminInit()
 {
     $admin = Admin::init();
     $this->assertTrue($admin);
 }
Example #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);
     }
 }