LLMS_Admin_Setup_Wizard::get_prev_step( string $step = '' )

Get slug if prev step


Description Description


Parameters Parameters

$step

(string) (Optional) step to use as current

Default value: ''


Top ↑

Return Return

(string|false)


Top ↑

Source Source

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

	public function get_prev_step( $step = '' ) {
		if ( ! $step ) {
			$step = $this->get_current_step();
		}
		$steps = $this->get_steps();
		$keys = array_keys( $steps );
		$i = array_search( $step, $keys );
		if ( false === $i ) {
			return false;
		} elseif ( $i - 1 < 0 ) {
			return false;
		} else {
			return $keys[ $i - 1 ];
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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