BP_Admin::admin_bar_about_link( WP_Admin_Bar $wp_admin_bar )

Add a link to BuddyPress Hello to the admin bar.


Parameters Parameters

$wp_admin_bar

(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_node( 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',
			),
		) );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Hooked at priority 100 (was 15).
1.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.