Core::setup_user_profile_bar()
Add Menu in Profile section.
Description
Parameters
- $menus
-
(Required)
Source
File: bp-integrations/learndash/core/Core.php
function setup_user_profile_bar() {
?>
<li id="wp-admin-bar-my-account-<?php echo esc_attr( $this->course_slug ); ?>" class="menupop">
<a class="ab-item" aria-haspopup="true"
href="<?php echo esc_url( $this->adminbar_nav_link( $this->course_slug ) ); ?>">
<span class="wp-admin-bar-arrow" aria-hidden="true"></span><?php echo esc_attr( $this->course_name ); ?>
</a>
<div class="ab-sub-wrapper">
<ul id="wp-admin-bar-my-account-courses-default" class="ab-submenu">
<li id="wp-admin-bar-my-account-<?php echo esc_attr( $this->my_courses_slug ); ?>">
<a class="ab-item"
href="<?php echo esc_url( $this->adminbar_nav_link( $this->course_slug ) ); ?>"><?php echo esc_attr( $this->my_courses_name ); ?></a>
</li>
<?php
if ( $this->certificates_enables ) {
?>
<li id="wp-admin-bar-my-account-<?php echo esc_attr( $this->certificates_tab_slug ); ?>">
<a class="ab-item"
href="<?php echo esc_url( $this->adminbar_nav_link( $this->certificates_tab_slug, $this->course_slug ) ); ?>"><?php echo esc_attr( $this->my_certificates_tab_name ); ?></a>
</li>
<?php
}
?>
</ul>
</div>
</li>
<?php
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.2.0 | 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.