Skip to content

Instantly share code, notes, and snippets.

@codearryaas
Created November 21, 2019 16:25
Show Gist options
  • Save codearryaas/40b8cd2fb71b76297d719fce310b14fc to your computer and use it in GitHub Desktop.
Save codearryaas/40b8cd2fb71b76297d719fce310b14fc to your computer and use it in GitHub Desktop.
WordPress: Remove admin bar in front-end: 3
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