Admin Bar Remover
Shortlink doesn't show on admin bar (1 post)

  1. af.
    Posted 5 years ago #

    I've successfully installed WordPress 3.1.3 on several sites but for some reason on one of them the "Shortlink" item does not appear on the menu bar (when on single post pages).

    Also, this code which is hooked onto admin_bar_menu and works elsewhere does not work on the same site:

    global $wp_admin_bar;
    $current_object = get_queried_object();
    if ( empty($current_object->post_type) )

    (This code removes the "Edit" menu item if not on a single page)

    Any ideas why these two things would'nt be working? Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Admin Bar Remover
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic