LLMS_Admin_Menus::display_admin_menu()
Admin Menu
Contents
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.menus.php
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | * @since 7.4.1 Added the 'Resources' submenu page. * * @ return void */ public function display_admin_menu() { global $menu ; $menu [51] = array ( '' , 'read' , 'llms-separator' , '' , 'wp-menu-separator' ); $icon_url = 'data:image/svg+xml;base64,' . base64_encode ( file_get_contents ( LLMS_PLUGIN_DIR . 'assets/images/lifterlms-icon-grey.svg' ) ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents, WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode add_menu_page( 'lifterlms' , 'LifterLMS' , 'read' , 'lifterlms' , '__return_empty_string' , $icon_url , 51 ); add_submenu_page( 'lifterlms' , __( 'LifterLMS Dashboard' , 'lifterlms' ), __( 'Dashboard' , 'lifterlms' ), 'manage_lifterlms' , 'llms-dashboard' , array ( $this , 'dashboard_page_init' ) ); add_submenu_page( 'lifterlms' , __( 'LifterLMS Settings' , 'lifterlms' ), __( 'Settings' , 'lifterlms' ), 'manage_lifterlms' , 'llms-settings' , array ( $this , 'settings_page_init' ) ); add_submenu_page( 'lifterlms' , __( 'LifterLMS Reporting' , 'lifterlms' ), __( 'Reporting' , 'lifterlms' ), 'view_lifterlms_reports' , 'llms-reporting' , array ( $this , 'reporting_page_init' ) ); add_submenu_page( 'lifterlms' , __( 'LifterLMS Import' , 'lifterlms' ), __( 'Import' , 'lifterlms' ), 'manage_lifterlms' , 'llms-import' , array ( $this , 'import_page_init' ) ); |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.3.1 | Use encoded SVG LifterLMS icon so that WordPress can "paint" it. |
3.13.0 | Unknown. |
1.0.0 | Introduced. |