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