Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // add_filter('show_admin_bar','codingeek_show_admin_bar');
- function codingeek_check_user_validation(){
- $current_user = wp_get_current_user();
- if ( in_array('subscriber', $current_user)) {
- //have to write code for subscriber
- show_admin_bar( false ); // for hide adminbar
- };
- }
- add_action('wp_login','codingeek_check_user_validation');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement