forked from WebDevStudios/wd_s
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
31 lines (29 loc) · 913 Bytes
/
Copy pathfunctions.php
File metadata and controls
31 lines (29 loc) · 913 Bytes
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
<?php
/**
* _s functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package _s
*/
/**
* Get all the include files for the theme.
*
* @author WebDevStudios
*/
function _s_get_theme_include_files() {
return [
'inc/setup.php', // Theme set up. Should be included first.
'inc/compat.php', // Backwards Compatibility.
'inc/customizer/customizer.php', // Customizer additions.
'inc/extras.php', // Custom functions that act independently of the theme templates.
'inc/hooks.php', // Load custom filters and hooks.
'inc/security.php', // WordPress hardening.
'inc/scaffolding.php', // Scaffolding.
'inc/scripts.php', // Load styles and scripts.
'inc/template-tags.php', // Custom template tags for this theme.
];
}
foreach ( _s_get_theme_include_files() as $include ) {
require trailingslashit( get_template_directory() ) . $include;
}