Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] modify buddpress adminbar only in admin pages

  • @piphut

    Participant

    I have modified the buddpress admin bar by creating the following plugin which adds a simple text link to the bar:

    Code:
    function bp_adminbar_currentsite_menu() {

    global $bp;
    link stuff
    }
    // Call The Function Above
    add_action(‘bp_adminbar_menus’, ‘bp_adminbar_currentsite_menu’, 999);

    However, I do NOT want the above link to be shown when logged into the wordpress admin backend (so for example when an admin is editing a post). I thought about just doing a php_self check to see if it contained “/wp-admin/” but figured that there has to be a more elegant wordpress/buddypress hook here.

    How can I get the above code to only show when you are viewing a normal blog page, NOT in the admin area?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] modify buddpress adminbar only in admin pages’ is closed to new replies.
Skip to toolbar