Last active
January 10, 2017 21:52
-
-
Save Abd-Ur-Rehman/c78967e364ddcce1030840ef0f5d5fa3 to your computer and use it in GitHub Desktop.
View full post at http://www.abdurrehman.net/blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disabling admin bar for non admin users (this would work on a non-Woo site...) | |
function abdurrehman_net_hide_admin_bar_if( $show ) { | |
if ( /* CONDITION */ ) $show = false; | |
return $show; | |
} | |
add_filter( 'show_admin_bar', 'abdurrehman_net_hide_admin_bar_if' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment