bp_adminbar_logo

  • do_action( 'bp_adminbar_logo' )

    Source Reference:

    • Component: BuddyPress:: bp-core
      File: /bp-core/bp-core-buddybar.php :: Trac Source Line: 388
      	if ( (int)bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() )
      		return false;
      
      	$bp->doing_admin_bar = true;
      
      	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;
      

Hook: add_action: bp_adminbar_logo instances (1)

  • add_action( 'bp_adminbar_logo',  'bp_adminbar_logo' )
    $function_to_add: bp_adminbar_logo
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-buddybar.php :: Trac Source Line: 588
      		show_admin_bar( true );
      
      	// 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'    );
      	}
      }
      

Comments are closed.