Code

< 40 %
40-60 %
> 60 %
1
<?php
2
/**
3
 * Function includes, this file calls all the separate function files
4
 *
5
 * @since 1.0.0
6
 * @package GeoDirectory
7
 */
8
 
9
/**
10
 * Contains class & functions for geodirectory session usage.
11
 *
12
 * @since 1.5.7
13
 */
14
include_once('geodirectory-functions/geodir-class-session.php');
15
16
/**
17
 * Contains helper functions used to make like easier for theme/plugin devs.
18
 *
19
 * @since 1.0.0
20
 */
21
include_once('geodirectory-functions/helper_functions.php');
22
/**
23
 * Contains functions used for user info.
24
 *
25
 * @since 1.5.9
26
 */
27
include_once('geodirectory-functions/user_functions.php');
28
/**
29
 * Contains functions used for ajax calls.
30
 *
31
 * @since 1.0.0
32
 */
33
include_once('geodirectory-functions/ajax_handler_functions.php');
34
/**
35
 * Contains non specific general functions used by the plugin.
36
 *
37
 * @since 1.0.0
38
 */
39
include_once('geodirectory-functions/general_functions.php');
40
/**
41
 * Contains functions used by hooks and actions.
42
 *
43
 * @since 1.0.0
44
 */
45
include_once('geodirectory-functions/custom_functions.php');
46
/**
47
 * Contains functions/filters/hooks mostly used to alter the database queries.
48
 *
49
 * @since 1.0.0
50
 */
51
include_once('geodirectory-functions/listing_filters.php');
52
/**
53
 * Contains functions for calling the templates for the plugin.
54
 *
55
 * @since 1.0.0
56
 */
57
include_once('geodirectory-functions/template_functions.php');
58
/**
59
 * Contains functions for registration and sign in.
60
 *
61
 * @since 1.0.0
62
 */
63
include_once('geodirectory-functions/signup_function.php');
64
/**
65
 * Contains functions that are specifically related to post output page.
66
 *
67
 * @since 1.0.0
68
 */
69
include_once('geodirectory-functions/post_functions.php');
70
/**
71
 * Contains functions that are specifically related to taxonomy output pages (category and tags).
72
 *
73
 * @since 1.0.0
74
 */
75
include_once('geodirectory-functions/taxonomy_functions.php');
76
/**
77
 * Contains functions outputting the custom fields html inputs.
78
 *
79
 * @since 1.6.6
80
 */
81
include_once('geodirectory-functions/custom_fields_input_functions.php');
82
/**
83
 * Contains functions outputting the custom fields html.
84
 *
85
 * @since 1.6.6
86
 */
87
include_once('geodirectory-functions/custom_fields_output_functions.php');
88
/**
89
 * Contains functions for predefined custom fields.
90
 *
91
 * @since 1.6.9
92
 */
93
include_once('geodirectory-functions/custom_fields_predefined.php');
94
/**
95
 * Contains functions for building and storing custom fields.
96
 *
97
 * @since 1.0.0
98
 */
99
include_once('geodirectory-functions/custom_fields_functions.php');
100
/**
101
 * Contains functions related to comments and reviews.
102
 *
103
 * @since 1.0.0
104
 */
105
include_once('geodirectory-functions/comments_functions.php');
106
/**
107
 * Contains functions used for storing category meta information (cat icons, default image).
108
 *
109
 * @since 1.0.0
110
 */
111
include_once('geodirectory-functions/cat-meta-functions/cat_meta.php');
112
/**
113
 * Contains functions used for building and outputting google maps.
114
 *
115
 * @since 1.0.0
116
 */
117
include_once('geodirectory-functions/map-functions/map_functions.php');
118
/**
119
 * Contains functions used determining locations and saving location information.
120
 *
121
 * @since 1.0.0
122
 */
123
include_once('geodirectory-functions/location_functions.php');
124
/**
125
 * Contains functions used for displaying Google analytics.
126
 *
127
 * @since 1.1.4
128
 */
129
include_once('geodirectory-functions/google_analytics.php');
130
/**
131
 * Contains functions used to call shortcodes.
132
 *
133
 * @since 1.3.7
134
 */
135
include_once('geodirectory_shortcodes.php');
136
137
global $wp_version;
138
// If curent WP Version >= 4.9.6.
139
if ( version_compare( $wp_version, '4.9.6', '>=' ) ) {
140
	include_once( 'geodirectory-functions/privacy/abstract-geodir-privacy.php' );
141
	include_once( 'geodirectory-functions/privacy/class-geodir-privacy.php' );
142
}