Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'show_admin_bar', 'hide_admin_bar_on_posts' );
- function hide_admin_bar_on_posts( $show ){
- if( is_single() && 'post' == get_post_type( get_the_ID() ) )
- return false;
- return $show;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement