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

Get slug if next step


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_next_step( $step = '' ) {

		$step = $step ? $step : $this->get_current_step();
		$keys = array_keys( $this->get_steps() );
		$i    = array_search( $step, $keys, true );

		// Next step doesn't exist or the next step would be greater than the index of the last step.
		if ( false === $i || $i + 1 >= count( $keys ) ) {
			return false;
		}

		return $keys[ ++$i ];
	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.8.0 Combined combined if/elseif into a single condition & use strict array_search() comparison.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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