bp_adminbar_menus

  • do_action( 'bp_adminbar_menus' )

    Source Reference:

    • Component: BuddyPress:: bp-core
      File: /bp-core/bp-core-buddybar.php :: Trac Source Line: 393
      	echo '<div id="wp-admin-bar"><div class="padder">';
      
      	// **** Do bp-adminbar-logo Actions ********
      	do_action( 'bp_adminbar_logo' );
      
      	echo '<ul class="main-nav">';
      
      	// **** Do bp-adminbar-menus Actions ********
      	do_action( 'bp_adminbar_menus' );
      
      	echo '</ul>';
      	echo "</div></div><!-- #wp-admin-bar -->nn";
      
      	$bp->doing_admin_bar = false;
      }
      
      // **** Default BuddyPress admin bar logo ********
      function bp_adminbar_logo() {
      	global $bp;
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 )
    $function_to_add: bp_adminbar_notifications_menu
    $priority: 8
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-buddybar.php :: Trac Source Line: 42
      		<li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
      
      	<?php
      	}
      
      	echo '</ul>';
      	echo '</li>';
      }
      add_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 );
      
      // **** "Blog Authors" Menu (visible when not logged in) ********
      function bp_adminbar_authors_menu() {
      	global $bp, $wpdb;
      
      	// Only for multisite
      	if ( !is_multisite() )
      		return false;
      
      	// Hide on root blog
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 )
    $function_to_add: bp_adminbar_authors_menu
    $priority: 12
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-buddybar.php :: Trac Source Line: 81
      			echo bp_core_fetch_avatar( array( 'item_id' => $author->user_id, 'email' => $author->user_email, 'width' => 15, 'height' => 15 ) ) ;
       			echo ' ' . $author->display_name . '</a>';
      			echo '<div class="admin-bar-clear"></div>';
      			echo '</li>';
      		}
      		echo '</ul>';
      		echo '</li>';
      	}
      }
      add_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );
      
      /**
       * Adds an admin bar menu to any profile page providing site moderator actions
       * that allow capable users to clean up a users account.
       *
       * @package BuddyPress XProfile
       * @global $bp BuddyPress
       */
      function bp_members_adminbar_admin_menu() {
      	global $bp;
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_members_adminbar_admin_menu', 20 )
    $function_to_add: bp_members_adminbar_admin_menu
    $priority: 20
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-buddybar.php :: Trac Source Line: 133
      			<li><a href="<?php echo wp_nonce_url( $bp->displayed_user->domain . 'admin/delete-user/', 'delete-user' ) ?>" class="confirm"><?php printf( __( "Delete %s's Account", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ); ?></a></li>
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 6 )
    $function_to_add: bp_adminbar_blogs_menu
    $priority: 6
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-blogs
      File: /bp-blogs/bp-blogs-buddybar.php :: Trac Source Line: 61
      			echo '<li' . $alt . '>';
      			echo '<a href="' . bp_get_root_domain() . '/' . bp_get_blogs_root_slug() . '/create/">' . __( 'Create a Site!', 'buddypress' ) . '</a>';
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu',         2   )
    $function_to_add: bp_adminbar_login_menu
    $priority: 2
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-buddybar.php :: Trac Source Line: 589
      	// Hide the WordPress admin bar
      	} elseif ( !bp_use_wp_admin_bar() ) {
      
      		// Keep the WP admin bar from loading
      		show_admin_bar( false );
      
      		// Actions used to build the BP admin bar
      		add_action( 'bp_adminbar_logo',  'bp_adminbar_logo' );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu',         2   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_account_menu',       4   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_thisblog_menu',      6   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu',        100 );
      
      		// Actions used to append BP admin bar to footer
      		add_action( 'wp_footer',    'bp_core_admin_bar', 8 );
      		add_action( 'admin_footer', 'bp_core_admin_bar'    );
      	}
      }
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_adminbar_account_menu',       4   )
    $function_to_add: bp_adminbar_account_menu
    $priority: 4
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-buddybar.php :: Trac Source Line: 590
      	// Hide the WordPress admin bar
      	} elseif ( !bp_use_wp_admin_bar() ) {
      
      		// Keep the WP admin bar from loading
      		show_admin_bar( false );
      
      		// Actions used to build the BP admin bar
      		add_action( 'bp_adminbar_logo',  'bp_adminbar_logo' );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu',         2   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_account_menu',       4   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_thisblog_menu',      6   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu',        100 );
      
      		// Actions used to append BP admin bar to footer
      		add_action( 'wp_footer',    'bp_core_admin_bar', 8 );
      		add_action( 'admin_footer', 'bp_core_admin_bar'    );
      	}
      }
      
      /**
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_adminbar_thisblog_menu',      6   )
    $function_to_add: bp_adminbar_thisblog_menu
    $priority: 6
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-buddybar.php :: Trac Source Line: 591
      	} elseif ( !bp_use_wp_admin_bar() ) {
      
      		// Keep the WP admin bar from loading
      		show_admin_bar( false );
      
      		// Actions used to build the BP admin bar
      		add_action( 'bp_adminbar_logo',  'bp_adminbar_logo' );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu',         2   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_account_menu',       4   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_thisblog_menu',      6   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu',        100 );
      
      		// Actions used to append BP admin bar to footer
      		add_action( 'wp_footer',    'bp_core_admin_bar', 8 );
      		add_action( 'admin_footer', 'bp_core_admin_bar'    );
      	}
      }
      
      /**
       * Handle the BuddyBar CSS
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu',        100 )
    $function_to_add: bp_adminbar_random_menu
    $priority: 100
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-buddybar.php :: Trac Source Line: 592
      		// Keep the WP admin bar from loading
      		show_admin_bar( false );
      
      		// Actions used to build the BP admin bar
      		add_action( 'bp_adminbar_logo',  'bp_adminbar_logo' );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu',         2   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_account_menu',       4   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_thisblog_menu',      6   );
      		add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu',        100 );
      
      		// Actions used to append BP admin bar to footer
      		add_action( 'wp_footer',    'bp_core_admin_bar', 8 );
      		add_action( 'admin_footer', 'bp_core_admin_bar'    );
      	}
      }
      
      /**
       * Handle the BuddyBar CSS
       */
      

Hook: add_action: bp_adminbar_menus instances (9)

  • add_action( 'bp_adminbar_menus', 'bp_groups_adminbar_admin_menu', 20 )
    $function_to_add: bp_groups_adminbar_admin_menu
    $priority: 20
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-buddybar.php :: Trac Source Line: 52
      			<li><a class="confirm" href="<?php echo wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/delete-group/', 'groups_delete_group' ); ?>&amp;delete-group-button=1&amp;delete-group-understand=1"><?php _e( "Delete Group", 'buddypress' ) ?></a></li>
      

Comments are closed.