-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·83 lines (59 loc) · 1.63 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
<?php
// Gutenberg Block Functions
include('inc/gutenberg.php');
// Global Vars
include('inc/globals.php');
// ACF Functions
if(class_exists('ACF')){
include('inc/acfSettings.php');
}
// WooCommercer Functions
if(class_exists('WooCommerce')){
include('inc/woocommerceSettings.php');
}
// Yoast Functions
if(class_exists('WPSEO_Frontend')){
include('inc/yoastSettings.php');
}
// Enqueue Scripts & Styles
include('inc/enqueue.php');
// Header / Menu Functions
include('inc/header.php');
// Set WP Urls
include('inc/wpUrls.php');
// Wordpress Login Custom
include('inc/login.php');
// Picture Tag Function
include('inc/pictureTag.php');
// Pagination Function
include('inc/pagination.php');
// Pagination Function
include('inc/security.php');
// Tiny MCE Functions
include('inc/tinyMce.php');
// Thumbail Sizes & Theme Supports Functions
include('inc/sizesSupports.php');
// Data rights & Svg allow
include('inc/dataUpload.php');
// Rest Api Settings
// include('inc/restSettings.php');
// Recovery Mail, Disable Functions & Additinal Snipped
include('inc/additional.php');
// Herrlich Media Functions
include('inc/hmFunctions.php');
// Teams Custom Post Type
include('inc/teamPostType.php');
// Volunteer Teams Custom Post Type
if(class_exists('ACF')){
function my_acf_google_map_api( $api ){
$api['key'] = get_field('googleMapsToken', 'option');
return $api;
}
add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');
};
include('inc/volunteerTeamsPostType.php');
// Press Custom Post Type
include('inc/pressPostType.php');
// Press Custom Post Type
include('inc/registerBlockStyles.php');
?>