-
Notifications
You must be signed in to change notification settings - Fork 43
/
functions.php
36 lines (31 loc) · 1.37 KB
/
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
<?php
/**
* Theme functions file.
*
* This file is used to bootstrap the theme.
*
* @package Mythic
* @author Justin Tadlock <[email protected]>
* @copyright 2018 Justin Tadlock
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0-or-later
* @link https://themehybrid.com/themes/mythic
*/
# ------------------------------------------------------------------------------
# Compatibility check.
# ------------------------------------------------------------------------------
#
# Check that the site meets the minimum requirements for the theme before
# proceeding if this is a theme for public release. If building for a client
# that meets these requirements, this code is unnecessary.
if ( version_compare( $GLOBALS['wp_version'], '4.9.6', '<' ) || version_compare( PHP_VERSION, '7.4', '<' ) ) {
require_once( get_parent_theme_file_path( 'app/bootstrap-compat.php' ) );
return;
}
# ------------------------------------------------------------------------------
# Bootstrap the theme.
# ------------------------------------------------------------------------------
#
# Load the bootstrap files. Note that autoloading should happen first so that
# any classes/functions are available that we might need.
require_once( get_parent_theme_file_path( 'app/bootstrap-autoload.php' ) );
require_once( get_parent_theme_file_path( 'app/bootstrap-app.php' ) );