BP_Admin::admin_bar_about_link( WP_Admin_Bar $wp_admin_bar )
Add a link to BuddyPress Hello to the admin bar.
Description Description
Parameters Parameters
- $wp_admin_bar
-
(Required)
Source Source
File: bp-core/classes/class-bp-admin.php
public function admin_bar_about_link( $wp_admin_bar ) { if ( ! is_user_logged_in() ) { return; } $wp_admin_bar->add_menu( array( 'parent' => 'wp-logo', 'id' => 'bp-about', 'title' => esc_html_x( 'Hello, BuddyPress!', 'Colloquial alternative to "learn about BuddyPress"', 'buddypress' ), 'href' => bp_get_admin_url( '?hello=buddypress' ), 'meta' => array( 'class' => 'say-hello-buddypress', ), ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Hooked at priority 100 (was 15). |
1.9.0 | Introduced. |