PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/admin/class-lp-admin-menu.php +5 -2 4.4.54.4.8 View file →
@@ -125,8 +125,11 @@
125 125 $wp_menus_config = Config::instance()->get( 'wp-menus' );
126 126 $menu_items = $wp_menus_config['menus'] ?? array();
127 127 $this->group_menus = $wp_menus_config['group_menus'] ?? array();
128 128
129 + // Old hook declare type Class Submenu.
130 + $menu_items = apply_filters( 'learn-press/admin/menu-items', $menu_items );
131 +
129 132 add_action(
130 133 'parent_file',
131 134 function ( $parent_file ) {
132 135 global $current_screen;
@@ -256,11 +259,11 @@
256 259 // Add divider between groups
257 260 $menus_new[] = array(
258 261 '',
259 262 $this->get_capability(),
260 - 'lp-menu-divider-' . $group,
263 + '#',
261 264 '',
262 - 'lp-menu-divider',
265 + 'lp-menu-divider lp-menu-divider-' . $group,
263 266 );
264 267 }
265 268 }
266 269