-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
56 lines (41 loc) · 1.28 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
<?php
/**
* Functions
*
* @author Nir Goldberg
* @version 1.2.1
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
// theme configuration
require_once( 'functions/config.php' );
// theme support
require_once( 'functions/theme.php' );
// gtm
require_once( 'functions/gtm.php' );
// theme menus
require_once( 'functions/menus.php' );
// theme api
require_once( 'functions/api/filters.php' );
require_once( 'functions/api/upload.php' );
// scripts & styles registration
require_once( 'functions/scripts-n-styles.php' );
// admin header section
require_once( 'functions/admin/header.php' ); // should be outside is_admin() because of the login screen
if ( is_admin() ) {
require_once( 'functions/admin/footer.php' );
}
// post types
require_once( 'functions/post-types.php' );
require_once( 'functions/taxonomies.php' );
// subjects
require_once( 'functions/subjects.php' );
// localization
require_once( 'functions/localization.php' );
// ACF configuration
require_once( 'functions/acf/acf-config.php' );
// ACF field groups
if ( ! defined( 'USE_LOCAL_ACF_CONFIGURATION' ) || ! USE_LOCAL_ACF_CONFIGURATION ) {
require_once( 'functions/acf/acf-field-groups.php' );
}
// upload
require_once( 'functions/upload.php' );