-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
44 lines (44 loc) · 1.15 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
<?php
require __DIR__ . '/vendor/autoload.php';
$includes = [
'lib/cpt_posts.php',
'lib/cpt_taxonomies.php',
'lib/FacetedSearch.php',
'lib/StarterSite.php',
'lib/Post.php',
'lib/PostService.php',
'lib/ProfessionalAdmin.php',
'lib/ProfessionalService.php',
'lib/ProfessionalPost.php',
'lib/ContactForm.php',
'lib/AdminProfessionalList.php',
'lib/AdminMetaSearch.php',
'lib/TermSyncer.php',
'lib/ExternalCommentsSyncer.php',
'lib/ExternalRequestsSyncer.php',
'lib/RequestPost.php',
'lib/RequestArchive.php',
'lib/RequestService.php',
'lib/RequestNotifier.php',
'lib/WebinarService.php',
'lib/CourseService.php',
'lib/RequestForm.php',
'lib/setup.php',
'lib/helpers.php',
'lib/acf_add_options_page.php',
'lib/acf_settings.php',
'lib/acf_comment_mailing.php',
'lib/acf_request_mailing.php',
'lib/acf_request_archive.php',
'lib/acf_webinar_archive.php',
'lib/taxonomy_slug_rewrite.php',
'lib/remove_default_user_roles.php',
'lib/custom_search.php',
];
foreach ($includes as $file) {
if (!$filepath = locate_template($file)) {
trigger_error(sprintf('Error locating %s for inclusion', $file));
}
require_once $filepath;
}
unset($file, $filepath);