CreaCaptcha

forminator.php

Forminator integration.

Table of Contents

Functions

creationell_captcha_forminator_active()  : bool
Whether the Forminator integration is active.
creationell_captcha_forminator_inject()  : string
Auto-injects the widget before the submit button of a Forminator custom form.
creationell_captcha_forminator_verify()  : array<int, array<string, string>>
Verifies the captcha on a Forminator custom-form submission.

Functions

creationell_captcha_forminator_active()

Whether the Forminator integration is active.

creationell_captcha_forminator_active() : bool
Return values
bool

creationell_captcha_forminator_inject()

Auto-injects the widget before the submit button of a Forminator custom form.

creationell_captcha_forminator_inject(mixed $html, mixed $form_id) : string

The forminator_render_form_submit_markup filter also fires for polls and quizzes; injection is restricted to the forminator_forms post type.

Parameters
$html : mixed

The submit-section HTML.

$form_id : mixed

The form's post ID.

Return values
string

creationell_captcha_forminator_verify()

Verifies the captcha on a Forminator custom-form submission.

creationell_captcha_forminator_verify(mixed $errors) : array<int, array<string, string>>

Hooked on forminator_custom_form_submit_errors (custom forms only): a non-empty errors array makes Forminator reject the submission.

Parameters
$errors : mixed

The current array of submission errors.

Return values
array<int, array<string, string>>

        
On this page

Search results