Form::save_values_session( integer $id = '' )
Description #
Save current values to AnsPress session so that users unfinished question can be retrieved later.
Parameters #
- $idinteger (Optional) Numerical id. Default value: ''
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 ); } }
Expand full source code Collapse full source code View on GitHub: lib/class-form.php:588
Add your comment