Core::setup_user_profile_bar()
Add Menu in Profile section.
Description
Parameters
- $menus
-
(Required)
Source
File: bp-integrations/learndash/core/Core.php
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | 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.