-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathfunctions.php
More file actions
32 lines (26 loc) · 824 Bytes
/
functions.php
File metadata and controls
32 lines (26 loc) · 824 Bytes
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
<?php
/**
* Handles loading all the necessary files
*
* @package Tutor_Starter
*/
defined( 'ABSPATH' ) || exit;
// Content width.
if ( ! isset( $content_width ) ) {
$content_width = apply_filters( 'tutorstarter_content_width', get_theme_mod( 'content_width_value', 1140 ) );
}
// Theme GLOBALS.
$theme = wp_get_theme();
define( 'TUTOR_STARTER_VERSION', $theme->get( 'Version' ) );
// Load autoloader.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) :
require_once __DIR__ . '/vendor/autoload.php';
endif;
// Include TGMPA class.
if ( file_exists( __DIR__ . '/inc/Custom/class-tgm-plugin-activation.php' ) ) :
require_once __DIR__ . '/inc/Custom/class-tgm-plugin-activation.php';
endif;
// Register services.
if ( class_exists( 'Tutor_Starter\\Init' ) ) :
Tutor_Starter\Init::register_services();
endif;