PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.0
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.0
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
learnpress / inc / admin / settings / class-lp-settings-advanced.php

class-lp-settings-advanced.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.0, at inc/admin/settings/class-lp-settings-advanced.php

40 lines 770 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class LP_Settings_Profile
4 *
5 * @author ThimPress
6 * @package LearnPress/Admin/Classes/Settings
7 * @version 4.0.0
8 */
9
10 use LearnPress\Helpers\Config;
11
12 defined( 'ABSPATH' ) || exit;
13
14 class LP_Settings_Advanced extends LP_Abstract_Settings_Page {
15
16 public function __construct() {
17 $this->id = 'advanced';
18 $this->text = esc_html__( 'Advanced', 'learnpress' );
19
20 parent::__construct();
21 }
22
23 public function get_settings( $section = '', $tab = '' ) {
24 return Config::instance()->get( 'advanced', 'settings' );
25 }
26
27 /**
28 * Get sections for advanced settings.
29 *
30 * @return array<string, string>
31 */
32 public function get_sections() {
33 return array(
34 'general' => esc_html__( 'General', 'learnpress' ),
35 );
36 }
37 }
38
39 return new LP_Settings_Advanced();
40