Advertisement
fruffl

WP 5.4 functions

Mar 9th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?PHP
  2.     NAMESPACE tri4m\Wp;
  3.     USE tri4m\Wp\Theme;
  4.     USE ILLI\Core\Std\Exception;
  5.    
  6.     require_once $_SERVER['DOCUMENT_ROOT'].'/dev/ILLI/bootload.php';
  7.    
  8.     try
  9.     {
  10.         $theme = new Theme(
  11.         [
  12.             'themeUri'  => get_template_directory_uri(),
  13.             'themePath' => dirname(__DIR__),
  14.             'wpIncludeUri'  => includes_url(),
  15.             'wpIncludePath' => ABSPATH . WPINC,
  16.             'versionID' => 1,
  17.             'version'   => '0.0.1',
  18.             'slug'      => 'tri4m',
  19.             'name'      => 'tri4mTiger',
  20.             'fullName'  => 'tri4m tijger',
  21.             'debug'     => FALSE
  22.         ]);
  23.     }
  24.     catch(\Exception $E)
  25.     {
  26.         Theme::e('Theme Error', $E);
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement