Skip to content

Instantly share code, notes, and snippets.

@oropesa
Created August 24, 2015 19:02
Show Gist options
  • Save oropesa/64ed7b0a3afc09290929 to your computer and use it in GitHub Desktop.
Save oropesa/64ed7b0a3afc09290929 to your computer and use it in GitHub Desktop.
Hide adminbar in WordPress frontpage
<?php
/**
* Hide adminbar in frontpage
*/
add_filter( 'show_admin_bar', function() { return false; } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment