Created
November 21, 2019 16:25
-
-
Save codearryaas/40b8cd2fb71b76297d719fce310b14fc to your computer and use it in GitHub Desktop.
WordPress: Remove admin bar in front-end: 3
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
function your_theme_admin_bar(){ | |
global $post; | |
if ( 231 === $post->ID ) { | |
return false; | |
} | |
} | |
add_filter( 'show_admin_bar' , 'your_theme_admin_bar'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment