diff --git a/admin-bar.php b/admin-bar.php new file mode 100644 index 0000000..e3fca96 --- /dev/null +++ b/admin-bar.php @@ -0,0 +1,17 @@ +remove_node('wp-logo'); +} +add_action('wp_before_admin_bar_render', 'vmy_admin_bar_remove'); diff --git a/admin.php b/admin.php index 5ac56e1..52e2a32 100644 --- a/admin.php +++ b/admin.php @@ -17,19 +17,3 @@ function my_alert() { echo ''; } add_action('admin_notices', 'my_alert'); - -/** - * 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'); \ No newline at end of file