@@ 61-63 (lines=3) @@ | ||
58 | public function learners_admin_menu() { |
|
59 | global $menu; |
|
60 | ||
61 | if ( current_user_can( 'manage_sensei_grades' ) ) { |
|
62 | $learners_page = add_submenu_page( 'sensei', $this->name, $this->name, 'manage_sensei_grades', $this->page_slug, array( $this, 'learners_page' ) ); |
|
63 | } |
|
64 | ||
65 | } // End learners_admin_menu() |
|
66 |
@@ 274-278 (lines=5) @@ | ||
271 | */ |
|
272 | public function register_settings_screen () { |
|
273 | ||
274 | if ( current_user_can( 'manage_sensei' ) ) { |
|
275 | $hook = add_submenu_page( 'sensei', $this->name, $this->menu_label, 'manage_sensei', $this->page_slug, array( $this, 'settings_screen' ) ); |
|
276 | ||
277 | $this->hook = $hook; |
|
278 | } |
|
279 | ||
280 | if ( isset( $_GET['page'] ) && ( $_GET['page'] == $this->page_slug ) ) { |
|
281 |