# learnpress/4.1.7.2/inc/admin/settings/class-lp-settings-advanced.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.7.2. 126 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7.2/code/inc/admin/settings/class-lp-settings-advanced.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7.2/raw/inc/admin/settings/class-lp-settings-advanced.php
- Modified: 2022-09-23T02:52:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.1.7.2/code/inc/admin/settings/class-lp-settings-advanced.php#L10-L20`.

```php
<?php
/**
 * Class LP_Settings_Profile
 *
 * @author  ThimPress
 * @package LearnPress/Admin/Classes/Settings
 * @version 4.0.0
 */

defined( 'ABSPATH' ) || exit;

class LP_Settings_Advanced extends LP_Abstract_Settings_Page {

	public function __construct() {
		$this->id   = 'advanced';
		$this->text = esc_html__( 'Advanced', 'learnpress' );

		parent::__construct();
	}

	public function get_settings( $section = '', $tab = '' ) {
		return apply_filters(
			'learn_press_advanced_settings',
			array(
				array(
					'type'  => 'title',
					'title' => esc_html__( 'Style', 'learnpress' ),
					'id'    => 'lp_metabox_setting_advanced',
				),
				array(
					'title'    => esc_html__( 'Primary color', 'learnpress' ),
					'desc'     => sprintf( __( 'Default: %s', 'learnpress' ), '<code>#ffb606</code>' ),
					'id'       => 'primary_color',
					'type'     => 'color',
					'css'      => 'width:6em;',
					'default'  => '#ffb606',
					'autoload' => false,
					'desc_tip' => true,
				),
				array(
					'title'    => esc_html__( 'Secondary color', 'learnpress' ),
					'desc'     => sprintf( __( 'Default: %s', 'learnpress' ), '<code>#442e66</code>' ),
					'id'       => 'secondary_color',
					'type'     => 'color',
					'css'      => 'width:6em;',
					'default'  => '#442e66',
					'autoload' => false,
					'desc_tip' => true,
				),
				array(
					'type' => 'sectionend',
					'id'   => 'lp_metabox_setting_advanced',
				),
				array(
					'type'  => 'title',
					'title' => esc_html__( 'Other', 'learnpress' ),
					'id'    => 'lp_metabox_advanced_other',
				),
				array(
					'title'         => esc_html__( 'Enable gutenberg', 'learnpress' ),
					'id'            => 'enable_gutenberg_course',
					'default'       => 'no',
					'type'          => 'checkbox',
					'checkboxgroup' => 'start',
					'desc'          => esc_html__( 'Course', 'learnpress' ),
				),
				array(
					'id'            => 'enable_gutenberg_lesson',
					'default'       => 'no',
					'type'          => 'checkbox',
					'checkboxgroup' => '',
					'desc'          => esc_html__( 'Lesson', 'learnpress' ),
				),
				array(
					'id'            => 'enable_gutenberg_quiz',
					'default'       => 'no',
					'type'          => 'checkbox',
					'checkboxgroup' => '',
					'desc'          => esc_html__( 'Quiz', 'learnpress' ),
				),
				array(
					'id'            => 'enable_gutenberg_question',
					'default'       => 'no',
					'type'          => 'checkbox',
					'checkboxgroup' => 'end',
					'desc'          => esc_html__( 'Question', 'learnpress' ),
				),
				array(
					'title'   => esc_html__( 'Debug Mode', 'learnpress' ),
					'id'      => 'debug',
					'default' => 'no',
					'type'    => 'checkbox',
					'desc'    => esc_html__( 'Enable debug mode for developer.', 'learnpress' ),
				),
				// array(
				// 	'title'   => esc_html__( 'Enable Jwt Rest API', 'learnpress' ),
				// 	'id'      => 'enable_jwt_rest_api',
				// 	'default' => 'no',
				// 	'type'    => 'checkbox',
				// 	'desc'    => esc_html__( 'Enable Rest API build for app, mobile...etc.', 'learnpress' ),
				// ),
				/*array(
					'title'   => esc_html__( 'Hard Cache', 'learnpress' ),
					'id'      => 'enable_hard_cache',
					'default' => 'no',
					'type'    => 'checkbox',
					'desc'    => sprintf( __( 'Enable cache for static content such as content and settings of course, lesson, quiz. <a href="%1$s">%2$s</a>', 'learnpress' ), admin_url( 'admin.php?page=learn-press-tools&tab=cache' ), esc_html__( 'Advanced', 'learnpress' ) ),
				),*/
				array(
					'title'   => esc_html__( 'Enable', 'learnpress' ),
					'id'      => 'navigation_position',
					'default' => 'yes',
					'type'    => 'checkbox',
					'desc'    => esc_html__( 'Question navigation position is sticky, if not right below the quiz content', 'learnpress' ),
				),
				array(
					'type' => 'sectionend',
					'id'   => 'lp_metabox_advanced_other',
				),
			)
		);
	}
}

return new LP_Settings_Advanced();

```
