forked from godaddy-wordpress/go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
executable file
·80 lines (68 loc) · 1.56 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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Go functions and definitions
*
* @package Go
*/
/**
* Theme constants.
*/
define( 'GO_VERSION', '1.5.1' );
/**
* AMPP setup, hooks, and filters.
*/
require_once get_parent_theme_file_path( 'includes/amp.php' );
/**
* 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' );
/**
* Page Titles Meta functions.
*/
require_once get_parent_theme_file_path( 'includes/title-meta.php' );
/**
* Layouts for the CoBlocks layout selector.
*/
foreach ( glob( get_parent_theme_file_path( 'partials/layouts/*.php' ) ) as $filename ) {
require_once $filename;
}
/**
* Run setup functions.
*/
Go\AMP\setup();
Go\Core\setup();
Go\TGM\setup();
Go\Customizer\setup();
Go\WooCommerce\setup();
Go\Title_Meta\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.
do_action( 'wp_body_open' );
}
endif;