LLMS_Admin_Setup_Wizard::output()

Output the HTML content of the setup page


Return Return

(void)


Top ↑

Source Source

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

	public function output() {

		$step_html = '';
		$steps     = $this->get_steps();
		$current   = $this->get_current_step();
		$prev      = $this->get_prev_step();
		$next      = $this->get_next_step();

		if ( in_array( $current, array_keys( $this->get_steps() ), true ) ) {

			ob_start();
			include LLMS_PLUGIN_DIR . 'includes/admin/views/setup-wizard/step-' . $current . '.php';
			$step_html = ob_get_clean();

		}

		/**
		 * Filter the HTML of a step within the setup wizard.
		 *
		 * The dynamic portion of this hook, `$current`, refers to the slug of the current step.
		 *
		 * This filter can be used to output the HTML for a custom step in the setup wizard.
		 *
		 * @since 4.8.0
		 *
		 * @param string                  $step_html HTML of the step.
		 * @param LLMS_Admin_Setup_Wizard $wizard    Setup wizard class instance.
		 */
		$step_html = apply_filters( "llms_setup_wizard_{$current}_html", $step_html, $this );

		include LLMS_PLUGIN_DIR . 'includes/admin/views/setup-wizard/main.php';

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.8.0 Refactored to include HTML from a view file instead of hardcoded HTML into the method.
3.16.14 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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