}
}
-/*
- * If the current user is not an admin and is a member,
- * return 'sunrise' as the default admin color
- */
-add_filter('get_user_option_admin_color', function($result) {
- if (!current_user_can('administrator') && current_user_can("glm_members_member")) {
- return 'sunrise';
- }
- return $result;
-});
add_filter('get_template_url', function() {
return get_template_directory_uri();
});
-/*
- * If the current user is not an admin and is a member,
- * return 'sunrise' as the default admin color
- */
-add_filter('get_user_option_admin_color', function($result) {
- if (!current_user_can('administrator') && current_user_can("glm_members_member")) {
- return 'sunrise';
- }
- return $result;
-});
function is_post_type($type){
global $wp_query;
if($type == get_post_type($wp_query->post->ID)) return true;