Blog

Michael

Removing the WordPress link in the 3.3 Admin Bar

WordPress 3.3 has just been released, and it’s looking pretty cool. However, the new admin bar which displays at the top of the site when logged in now has an image of the WordPress logo, with a drop-down of links to the WordPress site.

Unfortunately, this can be quite distracting and confusing for some user, as it links them away from their site or dashboard if they accidentally click on it (The previous versions of WordPress had the users gravatar and linked to their profile page.)

While there isn’t any setting to remove it (yet), thankfully it is pretty easy to get rid of.

To do this, open your theme’s functions.php file, which should be found at /wp-content/themes/yourthemename/functions.php and add the following code.

function remove_wp_admin_link() {
if(has_action('admin_bar_menu'))
remove_action('admin_bar_menu', 'wp_admin_bar_wp_menu');
}
add_action('init', 'remove_wp_admin_link');

WordPress adds ‘wp_admin_bar_wp_menu()’ to the ‘admin_bar_menu’ hook in the /wp-includes/class-wp-admin-bar.php file. Here we tell WordPress to remove this action during WordPress’s ‘init‘ phase (providing the user is logged in as that is the only time it is seen).

To make life easier I’ve also created a plugin which is currently available on github and will putting a copy into the WordPress Extend plugin directory soon.

Jason

State of the Word 2011

It’s that time of the year again when WordCamp San Fran has been and gone and each and every year we at FSHQ eagerly await being able to watch Matt give his State of Word presentation.

And here it is…

As always Matt highlights some key statistics, just to highlight a few:

  • WordPress 3.2 had 500,000 downloads in the first two days, representing the fastest upgrade velocity ever.
  • WordPress now has 15,000 plugins and 200 million plugin downloads, and we’re doing a lot of work to make the plugin experience more seamless.
  • 14.7 percent of the top million websites in the world use WordPress.
  • 22 of every 100 active domains created in the U.S. are running WordPress.

A very big thanks to Matt and each and every person to Automattic and those within the WordPress Community who help each and every day to make WordPress such a awesome platform.