do_action( "{$this->form_manager->get_prefix()}pre_handle_submission", awsmug\Torro_Forms\DB_Objects\Submissions\Submission $submission, awsmug\Torro_Forms\DB_Objects\Forms\Form $form, awsmug\Torro_Forms\DB_Objects\Forms\Container $container, array $data )

Fires before a form submission is handled.

Description

If you add one or more errors to the submission, the rest of the handling is skipped, essentially making the submission fail.

Parameters

$submission

(awsmug\Torro_Forms\DB_Objects\Submissions\Submission) (Optional) Submission object.

$form

(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Optional) Form object.

$container

(awsmug\Torro_Forms\DB_Objects\Forms\Container) (Optional) Current container object.

$data

(array) (Optional) Submission POST data.

Changelog

Changelog
Version Description
1.0.0 Introduced.