Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bbg_is_teacher( $user_id = false ) {
- global $current_user;
- if ( !$user_id )
- $user_id = $current_user->ID;
- if ( get_usermeta( $user_id, 'acct_type' ) == 'teacher' )
- return true;
- if ( is_super_admin() )
- return true;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement