-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
39 lines (32 loc) · 958 Bytes
/
functions.php
File metadata and controls
39 lines (32 loc) · 958 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
32
33
34
35
36
37
38
39
<?php
/**
* This file will serve as a configuration file for the theme,
* all the functions and classes needed for the theme
* will be defined inside the `inc` folder and only
* included or called here for initialization.
*/
/**
* Requiring autoloader.
*/
require_once('inc' . DIRECTORY_SEPARATOR . 'autoloader.php');
/**
* Requiring theme functions.
*/
require_once('inc' . DIRECTORY_SEPARATOR . 'theme-functions.php');
/**
* Add theme supports and nav menus.
*/
add_action('after_setup_theme', 'Boilerplate\theme_setup');
/**
* Add theme widgets.
*/
add_action('widgets_init', 'Boilerplate\widgets_init');
/**
* Enqueue theme assets.
*/
add_action('wp_enqueue_scripts', 'Boilerplate\enqueue_assets');
/**
* Removes WordPress theme bloat, this doesn't seem to have
* significant impact on the load time of the website.
*/
add_action('init', 'Boilerplate\remove_bloat');