LLMS_View_Manager::add_menu_items( WP_Admin_Bar $wp_admin_bar )
Add view links to the admin menu bar for qualifying users.
Parameters Parameters
- $wp_admin_bar
-
(WP_Admin_Bar) (Required) Admin bar class instance.
Return Return
(void)
Source Source
File: includes/class.llms.view.manager.php
public function add_menu_items( $wp_admin_bar ) {
if ( ! $this->should_display() ) {
return;
}
foreach ( $this->get_menu_items_to_add() as $node ) {
$wp_admin_bar->add_node( $node );
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.5.1 | Use should_display() method to determine if the view manager should be added to the admin bar. |
| 4.2.0 | Updated icon. |
| 4.16.0 | Retrieve nodes to add from get_menu_items_to_add(). |
| 3.7.0 | |
| 3.16.0 | Introduced. |