Changeset 1379124
- Timestamp:
- 03/26/2016 01:00:07 AM (10 years ago)
- Location:
- remove-wp-menu/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
remove-wp-menu.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remove-wp-menu/trunk/readme.txt
r664059 r1379124 4 4 Tags: clutter, clean, remove-cruft 5 5 Requires at least: 3.3 6 Tested up to: 3.47 Stable tag: 1.0 6 Tested up to: 4.4.2 7 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 19 19 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory 20 20 2. Activate the plugin through the 'Plugins' menu in WordPress 21 3. Done! WP Menu in Admin Bar is gone!21 3. Done! The WP Menu in Admin Bar is gone! 22 22 23 23 == Changelog == 24 24 25 1.0.1 - Code formatting updates 26 25 27 1.0 - Initial release -
remove-wp-menu/trunk/remove-wp-menu.php
r664056 r1379124 1 1 <?php 2 /* 3 Plugin Name: Remove Admin Bar WP Menu 4 Plugin URI: http://aaronjholbrook.com 5 Description: Remove the Admin Bar WP Menu/Icon 6 Version: 1.0 7 Author: Aaron Holbrook 8 Author URI: http://aaronjholbrook.com 9 License: GPLv2 10 Copyright 2013 Aaron Holbrook (email : aaron@a7web.com, twitter : @aaronjholbrook) 11 */ 12 2 /** 3 * Plugin Name: Remove Admin Bar WP Menu 4 * Plugin URI: http://aaronjholbrook.com 5 * Description: Remove the Admin Bar WP Menu/Icon 6 * Version: 1.0.1 7 * Author: Aaron Holbrook 8 * Author URI: http://aaronjholbrook.com 9 * License: GPLv2 10 * Copyright 2013 Aaron Holbrook 11 */ 13 12 14 13 add_action( 'add_admin_bar_menus', 'remove_wp_admin_bar_wp_menu', 1 ); 14 15 15 /** 16 16 * Remove WP Admin Bar WP Menu … … 19 19 */ 20 20 function remove_wp_admin_bar_wp_menu() { 21 remove_action( 'admin_bar_menu', 'wp_admin_bar_wp_menu', 10 );21 remove_action( 'admin_bar_menu', 'wp_admin_bar_wp_menu', 10 ); 22 22 } 23 23
Note: See TracChangeset
for help on using the changeset viewer.