-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create admin-bar.php and move a snippet into it
- Loading branch information
1 parent
9ab15eb
commit 59ea407
Showing
2 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* function vpm_admin_bar_remove | ||
* Remove the WordPress menu from the admin bar. | ||
* | ||
* This will remove the WordPress logo from the admin bar; you | ||
* may wish to add your own alternative menu in its place. | ||
* | ||
* @since 1.0 | ||
*/ | ||
function my_admin_bar_remove() { | ||
global $wp_admin_bar; | ||
|
||
$wp_admin_bar->remove_node('wp-logo'); | ||
} | ||
add_action('wp_before_admin_bar_render', 'vmy_admin_bar_remove'); |
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