bp_adminbar_thisblog_menu

The BuddyPress bp adminbar thisblog menu function.

Description

bp_adminbar_thisblog_menu(); 

Usage

  1. if ( !function_exists( 'bp_adminbar_thisblog_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/2.1.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_adminbar_thisblog_menu(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/2.1.php  
  1. function bp_adminbar_thisblog_menu() { 
  2. if ( current_user_can( 'edit_posts' ) ) { 
  3. echo '<li id="bp-adminbar-thisblog-menu"><a href="' . admin_url() . '">'; 
  4. _e( 'Dashboard', buddypress ); 
  5. echo '</a>'; 
  6. echo '<ul>'; 
  7.  
  8. echo '<li class="alt"><a href="' . admin_url() . 'post-new.php">' . __( 'New Post', buddypress ) . '</a></li>'; 
  9. echo '<li><a href="' . admin_url() . 'edit.php">' . __( 'Manage Posts', buddypress ) . '</a></li>'; 
  10. echo '<li class="alt"><a href="' . admin_url() . 'edit-comments.php">' . __( 'Manage Comments', buddypress ) . '</a></li>'; 
  11.  
  12.  
  13. echo '</ul>'; 
  14. echo '</li>';