-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
40 lines (30 loc) · 1.11 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
<?php
/****************************************
Theme Setup
*****************************************/
require_once( get_template_directory() . '/lib/init.php' );
require_once( get_template_directory() . '/lib/theme-helpers.php' );
require_once( get_template_directory() . '/lib/theme-functions.php' );
//require_once( get_template_directory() . '/lib/theme-comments.php' );
/****************************************
Require Plugins
*****************************************/
require_once( get_template_directory() . '/lib/class-tgm-plugin-activation.php' );
require_once( get_template_directory() . '/lib/theme-require-plugins.php' );
add_action( 'tgmpa_register', 'te_register_required_plugins' );
/****************************************
Misc Theme Functions
*****************************************/
/**
* Define custom post type capabilities for use with Members
*/
function te_add_post_type_caps() {
// te_add_capabilities( 'portfolio' );
}
/**
* Filter Yoast SEO Metabox Priority
*/
add_filter( 'wpseo_metabox_prio', 'te_filter_yoast_seo_metabox' );
function te_filter_yoast_seo_metabox() {
return 'low';
}