-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.php
98 lines (71 loc) · 2.3 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* Functions
*
* @author Beit Hatfutsot
* @package bh
* @version 2.14.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
// helpers
require_once( 'functions/helpers.php' );
// theme params
require_once( 'functions/config.php' );
// theme support
require_once( 'functions/theme.php' );
// classes
// smarticket
// require_once( 'includes/classes/class-smarticket-core.php' );
// wpml
require_once( 'functions/wpml.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' );
// transients
// require_once('functions/transients.php');
// sidebars
require_once( 'functions/sidebars.php' );
// widgets
require_once( 'functions/widgets.php' );
// menus
require_once( 'functions/menus.php' );
// template
require_once( 'functions/template.php' );
// other
require_once( 'functions/utils.php' );
// shortcodes
require_once( 'functions/shortcodes.php' );
// ACF field groups
require_once( 'functions/acf/acf-configuration.php' );
if ( ! defined( 'USE_LOCAL_ACF_CONFIGURATION' ) || ! USE_LOCAL_ACF_CONFIGURATION ) {
require_once( 'functions/acf/acf-field-groups.php' );
}
// woocommerce
require_once( 'functions/woocommerce/classes/class-bh-wc-admin-taxonomies.php' );
require_once( 'functions/woocommerce/woocommerce-functions.php' );
require_once( 'functions/woocommerce/woocommerce-hooks.php' );
require_once( 'functions/woocommerce/google-product-feed.php' );
// api
require_once( 'functions/api/api-functions.php' );
require_once( 'functions/api/api-hooks.php' );
// events
require_once( 'functions/events.php' );
// Yoast breadcrumbs
// require_once( 'functions/yoast-breadcrumbs.php' );
// Pelecard
require_once( 'functions/pelecard/pelecard-api.php' );
// Forms
require_once( 'functions/forms.php' );
// Donations
require_once( 'functions/donations.php' );
// Contact Form 7 hooks
if ( is_cf7_installed() ) {
require_once( 'functions/forms/wpcf7-hooks.php' );
}