PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 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 All 140 releases
← All changes | inc/admin/settings/class-lp-settings-profile.php +42 -42 4.3.8 → 4.4.9 View file →
@@ -1,42 +1,42 @@
1 -<?php
2 -
3 -/**
4 - * Class LP_Settings_Profile
5 - *
6 - * @author ThimPress
7 - * @package LearnPress/Admin/Classes/Settings
8 - * @version 1.0
9 - */
10 -
11 -use LearnPress\Helpers\Config;
12 -
13 -defined( 'ABSPATH' ) || exit;
14 -
15 -if ( class_exists( 'LP_Settings_Profile', false ) ) {
16 - return new LP_Settings_Profile();
17 -}
18 -
19 -class LP_Settings_Profile extends LP_Abstract_Settings_Page {
20 -
21 - /**
22 - * Constructor
23 - */
24 - public function __construct() {
25 - $this->id = 'profile';
26 - $this->text = esc_html__( 'Profile', 'learnpress' );
27 -
28 - parent::__construct();
29 - }
30 -
31 - /**
32 - * @param string $section
33 - * @param string $tab
34 - *
35 - * @return array
36 - */
37 - public function get_settings( $section = null, $tab = null ) {
38 - return Config::instance()->get( 'profile', 'settings' );
39 - }
40 -}
41 -
42 -return new LP_Settings_Profile();
1 +<?php
2 +
3 +/**
4 + * Class LP_Settings_Profile
5 + *
6 + * @author ThimPress
7 + * @package LearnPress/Admin/Classes/Settings
8 + * @version 1.0
9 + */
10 +
11 +use LearnPress\Helpers\Config;
12 +
13 +defined( 'ABSPATH' ) || exit;
14 +
15 +if ( class_exists( 'LP_Settings_Profile', false ) ) {
16 + return new LP_Settings_Profile();
17 +}
18 +
19 +class LP_Settings_Profile extends LP_Abstract_Settings_Page {
20 +
21 + /**
22 + * Constructor
23 + */
24 + public function __construct() {
25 + $this->id = 'profile';
26 + $this->text = esc_html__( 'Profile', 'learnpress' );
27 +
28 + parent::__construct();
29 + }
30 +
31 + /**
32 + * @param string $section
33 + * @param string $tab
34 + *
35 + * @return array
36 + */
37 + public function get_settings( $section = null, $tab = null ) {
38 + return Config::instance()->get( 'profile', 'settings' );
39 + }
40 +}
41 +
42 +return new LP_Settings_Profile();