-
Notifications
You must be signed in to change notification settings - Fork 223
/
functions.php
executable file
·81 lines (64 loc) · 1.83 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* _mbbasetheme functions and definitions
*
* @package _mbbasetheme
*/
/****************************************
Theme Setup
*****************************************/
/**
* Theme initialization
*/
require get_template_directory() . '/lib/init.php';
/**
* Custom theme functions definited in /lib/init.php
*/
require get_template_directory() . '/lib/theme-functions.php';
/**
* Helper functions for use in other areas of the theme
*/
require get_template_directory() . '/lib/theme-helpers.php';
/**
* Implement the Custom Header feature.
*/
//require get_template_directory() . '/lib/inc/custom-header.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/lib/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/lib/inc/extras.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/lib/inc/customizer.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/lib/inc/jetpack.php';
/****************************************
Require Plugins
*****************************************/
require get_template_directory() . '/lib/class-tgm-plugin-activation.php';
require get_template_directory() . '/lib/theme-require-plugins.php';
// add_action( 'tgmpa_register', 'mb_register_required_plugins' );
/****************************************
Misc Theme Functions
*****************************************/
/**
* Define custom post type capabilities for use with Members
*/
add_action( 'admin_init', 'mb_add_post_type_caps' );
function mb_add_post_type_caps() {
// mb_add_capabilities( 'portfolio' );
}
/**
* Filter Yoast SEO Metabox Priority
*/
add_filter( 'wpseo_metabox_prio', 'mb_filter_yoast_seo_metabox' );
function mb_filter_yoast_seo_metabox() {
return 'low';
}