LLMS_Admin_Setup_Wizard::output_before_importable_course( array $course )

Output HTML prior to each importable course

Description Description

Adds an opening label wrapper and adds HTML data to turn the element into a toggleable form element.

Top ↑

Parameters Parameters


(array) (Required) Importable course data array.

Top ↑

Return Return


Top ↑

Source Source

File: includes/admin/class.llms.admin.setup.wizard.php

	public function output_before_importable_course( $course ) {

		$id = absint( $course['id'] );
			<div class="llms-switch">
				<input class="llms-toggle llms-toggle-round" id="llms-setup-import-course-<?php echo $id; ?>" name="llms_setup_course_import_ids[]" value="<?php echo $id; ?>" type="checkbox">
				<label for="llms-setup-import-course-<?php echo $id; ?>"><span class="screen-reader-text"><?php _e( 'Toggle to import course', 'lifterlms' ); ?></label>


Top ↑

Changelog Changelog

Version Description
4.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.