class-ld-settings-page-groups-options.php
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* LearnDash Settings Page Groups Options.
*
* @since 3.2.0
* @package LearnDash\Settings\Pages
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ( class_exists( 'LearnDash_Settings_Page' ) ) && ( ! class_exists( 'LearnDash_Settings_Page_Groups_Options' ) ) ) {
/**
* Class LearnDash Settings Page Groups Options.
*
* @since 3.2.0
*/
class LearnDash_Settings_Page_Groups_Options extends LearnDash_Settings_Page {
/**
* Public constructor for class
*
* @since 3.2.0
*/
public function __construct() {
$this->parent_menu_page_url = 'edit.php?post_type=groups';
$this->menu_page_capability = LEARNDASH_ADMIN_CAPABILITY_CHECK;
$this->settings_page_id = 'groups-options';
$this->settings_page_title = esc_html_x( 'Settings', 'Group Settings', 'learndash' );
$this->settings_tab_title = $this->settings_page_title;
parent::__construct();
}
}
}
add_action(
'learndash_settings_pages_init',
function() {
LearnDash_Settings_Page_Groups_Options::add_page_instance();
}
);