Protector::verify_request( array $data, awsmug\Torro_Forms\DB_Objects\Forms\Form $form, awsmug\Torro_Forms\DB_Objects\Submissions\Submission|null $submission = null )

Verifies a request by ensuring that it is not spammy.

Description

See also

Parameters

$data

(array) (Required) Submission POST data.

$form

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

$submission

(awsmug\Torro_Forms\DB_Objects\Submissions\Submission|null) (Optional) Submission object, or null if a new submission.

Default value: null

Return

(bool|WP_Error) True if request is not spammy, false or error object otherwise.

Source

File: src/modules/protectors/protector.php

	public abstract function verify_request( $data, $form, $submission = null );

Changelog

Changelog
Version Description
1.0.0 Introduced.