Form::save_values_session( integer $id = '' )

Description #

Save current values to AnsPress session so that users unfinished question can be retrieved later.

Parameters #

  • $id
    integer (Optional) Numerical id. Default value: ''

Changelog #

VersionDescription
4.1.5Introduced.

Source #

File: lib/class-form.php

	public function save_values_session( $id = '' ) {
		$values = $this->get_values();

		if ( ! empty( $values ) ) {
			$id = empty( $id ) ? '' : '_' . $id;
			anspress()->session->set( $this->form_name . $id, $values );
		}
	}

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