See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| // Removes the Yoast Metabox for Roles other then Admins | |
| // Returns true if user has specific role | |
| function check_user_role( $role, $user_id = null ) { | |
| if ( is_numeric( $user_id ) ) | |
| $user = get_userdata( $user_id ); | |
| else | |
| $user = wp_get_current_user(); | |
| if ( empty( $user ) ) | |
| return false; | |
| return in_array( $role, (array) $user->roles ); |