Session::set_question( integer $id )

Description #

Set a question id in session’s questions offset.

Parameters #

  • $id
    integer (Required) Question id.

Changelog #

VersionDescription
4.1.5Introduced.

Source #

File: includes/class/class-session.php

	public function set_question( $id ) {
		$questions = $this->get( 'questions' );

		if ( ! $questions ) {
			$questions = array();
		}

		$questions[] = $id;

		$this->set( 'questions', $questions );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment