forked from godaddy-wordpress/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
executable file
·62 lines (53 loc) · 1.23 KB
/
functions.php
File metadata and controls
executable file
·62 lines (53 loc) · 1.23 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
60
61
62
<?php
/**
* Go functions and definitions
*
* @package Go
*/
/**
* Theme constants.
*/
define( 'GO_VERSION', '1.1.1' );
/**
* Core setup, hooks, and filters.
*/
require_once get_parent_theme_file_path( 'includes/core.php' );
/**
* Customizer additions.
*/
require_once get_parent_theme_file_path( 'includes/customizer.php' );
/**
* Custom template tags for the theme.
*/
require_once get_parent_theme_file_path( 'includes/template-tags.php' );
/**
* Pluggable functions.
*/
require_once get_parent_theme_file_path( 'includes/pluggable.php' );
/**
* TGMPA plugin activation.
*/
require_once get_parent_theme_file_path( 'includes/tgm.php' );
/**
* WooCommerce functions.
*/
require_once get_parent_theme_file_path( 'includes/woocommerce.php' );
/**
* Run setup functions.
*/
Go\Core\setup();
Go\TGM\setup();
Go\Customizer\setup();
Go\WooCommerce\setup();
if ( ! function_exists( 'wp_body_open' ) ) :
/**
* Fire the wp_body_open action.
*
* Added for backwards compatibility to support pre 5.2.0 WordPress versions.
*/
function wp_body_open() {
// Triggered after the opening <body> tag.
// phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound
do_action( 'wp_body_open' );
}
endif;