BBP_Admin::admin_bar_about_link( WP_Admin_Bar $wp_admin_bar )

Add a link to Forums about page to the admin bar

Description

Parameters

$wp_admin_bar

(WP_Admin_Bar) (Required)

Source

File: bp-forums/admin/admin.php

	public function admin_bar_about_link( $wp_admin_bar ) {
		if ( is_user_logged_in() ) {
			$wp_admin_bar->add_menu( array(
				'parent' => 'wp-logo',
				'id'     => 'bbp-about',
				'title'  => esc_html__( 'About Forums', 'buddyboss' ),
				'href'   => add_query_arg( array( 'page' => 'bbp-about' ), admin_url( 'index.php' ) )
			) );
		}
	}

Changelog

Changelog
Version Description
bbPress (r5136) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.