comments.php
ALTCHA protection for the WordPress comment form.
Table of Contents
Functions
- creationell_captcha_comments_active() : bool
- Whether comment protection applies to the current request.
- creationell_captcha_comments_render() : string
- Injects the widget just above the comment form submit button.
- creationell_captcha_comments_verify() : array<string, mixed>
- Verifies the captcha before a comment is accepted.
Functions
creationell_captcha_comments_active()
Whether comment protection applies to the current request.
creationell_captcha_comments_active() : bool
Return values
boolcreationell_captcha_comments_render()
Injects the widget just above the comment form submit button.
creationell_captcha_comments_render(string $submit_field) : string
Parameters
- $submit_field : string
-
The submit button field HTML.
Return values
stringcreationell_captcha_comments_verify()
Verifies the captcha before a comment is accepted.
creationell_captcha_comments_verify(array<string, mixed> $commentdata) : array<string, mixed>
Parameters
- $commentdata : array<string, mixed>
-
Comment data.