-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfunctions.php
More file actions
42 lines (37 loc) · 1.99 KB
/
functions.php
File metadata and controls
42 lines (37 loc) · 1.99 KB
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
<?php
// Load Composer dependencies.
require_once __DIR__ . '/vendor/autoload.php';
// Initialize Timber.
Timber\Timber::init();
/* Includes
==================================================================================================================================*/
include_once(get_stylesheet_directory() . '/functions/acf-options.php');
include_once(get_stylesheet_directory() . '/functions/plugin-timber.php');
include_once(get_stylesheet_directory() . '/functions/required-plugins.php');
include_once(get_stylesheet_directory() . '/functions/wm-autocomplete.php');
include_once(get_stylesheet_directory() . '/functions/wm-breadcrumbs.php');
include_once(get_stylesheet_directory() . '/functions/wm-contact.php');
/* Remove the minifier for Woocommerce themes, otherwise the cart won't work */
include_once(get_stylesheet_directory() . '/functions/wm-minify.php');
include_once(get_stylesheet_directory() . '/functions/wp-clean.php');
include_once(get_stylesheet_directory() . '/functions/wp-custom-post-type.php');
include_once(get_stylesheet_directory() . '/functions/wp-custom-post-type-icons.php');
include_once(get_stylesheet_directory() . '/functions/wp-hide-admin-items.php');
include_once(get_stylesheet_directory() . '/functions/wp-image-sizes.php');
include_once(get_stylesheet_directory() . '/functions/wp-image-quality.php');
include_once(get_stylesheet_directory() . '/functions/wp-options.php');
include_once(get_stylesheet_directory() . '/functions/wp-widgets.php');
// include_once(get_stylesheet_directory() . '/functions/wp_admin-menu.php');
// include_once(get_stylesheet_directory() . '/functions/woo-support.php');
// include_once(get_stylesheet_directory() . '/functions/woo.php');
/* Register menu's
==================================================================================================================================*/
function register_my_menus()
{
register_nav_menus(
array(
'main' => 'Hoofdmenu'
)
);
}
add_action('init', 'register_my_menus');