LLMS_Admin_Setup_Wizard::__construct()
Configure wizard.
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.setup.wizard.php
public function __construct() {
$this->id = 'setup';
$this->views_dir = LLMS_PLUGIN_DIR . 'includes/admin/views/setup-wizard/';
$this->title = esc_html__( 'LifterLMS Setup Wizard', 'lifterlms' );
$this->steps = array(
'intro' => array(
'title' => esc_html__( 'Welcome!', 'lifterlms' ),
'save' => esc_html__( 'Save & Continue', 'lifterlms' ),
'skip' => esc_html__( 'Skip this step', 'lifterlms' ),
),
'pages' => array(
'title' => esc_html__( 'Page Setup', 'lifterlms' ),
'save' => esc_html__( 'Save & Continue', 'lifterlms' ),
'skip' => esc_html__( 'Skip this step', 'lifterlms' ),
),
'payments' => array(
'title' => esc_html__( 'Payments', 'lifterlms' ),
'save' => esc_html__( 'Save & Continue', 'lifterlms' ),
'skip' => esc_html__( 'Skip this step', 'lifterlms' ),
),
'coupon' => array(
'title' => esc_html__( 'Coupon', 'lifterlms' ),
'save' => esc_html__( 'Allow', 'lifterlms' ),
'skip' => esc_html__( 'No thanks', 'lifterlms' ),
),
'finish' => array(
'title' => esc_html__( 'Finish!', 'lifterlms' ),
'save' => esc_html__( 'Import Courses', 'lifterlms' ),
'skip' => esc_html__( 'Skip this step', 'lifterlms' ),
),
);
$this->add_hooks();
// Add HTML around importable courses on last step.
add_action( 'llms_before_importable_course', array( $this, 'output_before_importable_course' ) );
add_action( 'llms_after_importable_course', array( $this, 'output_after_importable_course' ) );
// Hide action buttons on importable courses during last step.
add_filter( 'llms_importable_course_show_action', '__return_false' );
// Enqueue importer styles.
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_importer' ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.4.0 | |
| 4.4.4 | Remove output of inline scripts. |
| 3.0.0 | Introduced. |