Add new items to admin bar


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.