-
Notifications
You must be signed in to change notification settings - Fork 68
/
functions.php
43 lines (35 loc) · 864 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Theme Name: Eightshift Boilerplate Setup Theme
* Description: This is a initial setup for the Eightshift WordPress Boilerplate Theme.
* Author: Eightshift team
* Author URI: https://eightshift.com/
* Version: 12.0.0
* License: MIT
* License URI: http://www.gnu.org/licenses/gpl.html
* Text Domain: eightshift-boilerplate
*
* @package EightshiftBoilerplate
*/
declare(strict_types=1);
namespace EightshiftBoilerplate;
use EightshiftLibs\Cli\Cli;
/**
* If this file is called directly, abort.
*/
if (! \defined('WPINC')) {
die;
}
/**
* Include the autoloader so we can dynamically include the rest of the classes.
*/
if (!\file_exists(__DIR__ . '/vendor/autoload.php')) {
return;
}
require __DIR__ . '/vendor/autoload.php';
/**
* Run all WPCLI commands.
*/
if (\class_exists(Cli::class)) {
(new Cli())->load('boilerplate');
}