header-webbuild: remove top admin bar

This commit is contained in:
Silvan Calarco 2014-11-22 11:55:35 +01:00
parent 747bdc3edd
commit b2ad52d042
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ if ( !defined( 'ABSPATH' ) ) {
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"/>
<?php
remove_action('wp_head', '_admin_bar_bump_cb');
add_filter('show_admin_bar', '__return_false' );
print "<script>";
print "var user = \"" . wp_get_current_user()->user_login . "\";";
print "var user_email = \"" . wp_get_current_user()->user_email . "\";";

BIN
images/download.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB