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/settings/class-lp-settings-general.php +37 -37 4.3.84.4.8 View file →
@@ -1,37 +1,37 @@
1 -<?php
2 -
3 -use LearnPress\Helpers\Config;
4 -
5 -/**
6 - * Class LP_Settings_General
7 - *
8 - * @author ThimPress
9 - * @package LearnPress/Admin/Settings/Classes
10 - * @version 1.0
11 - */
12 -class LP_Settings_General extends LP_Abstract_Settings_Page {
13 - /**
14 - * Construct
15 - */
16 - public function __construct() {
17 - $this->id = 'general';
18 - $this->text = esc_html__( 'General', 'learnpress' );
19 -
20 - parent::__construct();
21 - }
22 -
23 - /**
24 - * Return fields for settings page.
25 - *
26 - * @param string $section
27 - * @param string $tab
28 - *
29 - * @return mixed
30 - */
31 - public function get_settings( $section = '', $tab = '' ) {
32 - return Config::instance()->get( 'general', 'settings' );
33 - }
34 -
35 -}
36 -
37 -return new LP_Settings_General();
1 +<?php
2 +
3 +use LearnPress\Helpers\Config;
4 +
5 +/**
6 + * Class LP_Settings_General
7 + *
8 + * @author ThimPress
9 + * @package LearnPress/Admin/Settings/Classes
10 + * @version 1.0
11 + */
12 +class LP_Settings_General extends LP_Abstract_Settings_Page {
13 + /**
14 + * Construct
15 + */
16 + public function __construct() {
17 + $this->id = 'general';
18 + $this->text = esc_html__( 'General', 'learnpress' );
19 +
20 + parent::__construct();
21 + }
22 +
23 + /**
24 + * Return fields for settings page.
25 + *
26 + * @param string $section
27 + * @param string $tab
28 + *
29 + * @return mixed
30 + */
31 + public function get_settings( $section = '', $tab = '' ) {
32 + return Config::instance()->get( 'general', 'settings' );
33 + }
34 +
35 +}
36 +
37 +return new LP_Settings_General();