Posted By

shufflepath on 03/07/12


Tagged

php wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

danfolt


Add new items to admin bar


 / Published in: PHP
 

  1. function wp_admin_bar_new_item() {
  2. global $wp_admin_bar;
  3. $wp_admin_bar->add_menu(array(
  4. 'id' => 'wp-admin-bar-new-item',
  5. 'title' => __('iShift Archive'),
  6. 'href' => 'http://www.instantshift.com/archive/'
  7. ));
  8. }
  9. add_action('wp_before_admin_bar_render', 'wp_admin_bar_new_item');

Report this snippet  

You need to login to post a comment.