forked from Automattic/_s
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
59 lines (49 loc) · 1.32 KB
/
functions.php
File metadata and controls
59 lines (49 loc) · 1.32 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* bootstrap file to include other files to set up theme functionality. Original includes from _s live in /inc. Our files live in /setup.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package _s
*/
namespace PIE\_S;
/**
* Include definitions for this theme.
*/
require_once get_template_directory() . '/definitions.php';
/**
* Load in the local version of ACF
*/
require_once ACF_PATH . 'acf.php';
require_once SETUP_PATH . 'theme.php';
require_once SETUP_PATH . 'enqueues.php';
require_once SETUP_PATH . 'api.php';
require_once SETUP_PATH . 'spa.php';
/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/inc/custom-header.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Functions which enhance the theme by hooking into WordPress.
*/
require get_template_directory() . '/inc/template-functions.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Load Jetpack compatibility file.
*/
if ( defined( 'JETPACK__VERSION' ) ) {
require get_template_directory() . '/inc/jetpack.php';
}
/**
* Load WooCommerce compatibility file.
*/
if ( class_exists( 'WooCommerce' ) ) {
require get_template_directory() . '/inc/woocommerce.php';
}