settings.php
Settings registration via the WordPress Settings API.
Table of Contents
Functions
- creationell_captcha_admin_tabs() : array<string, string>
- Ordered list of the admin settings tabs.
- creationell_captcha_admin_sections() : array<string, array<string, string>>
- Settings sections and the tab each one belongs to.
- creationell_captcha_settings_fields() : array<string, array<string, mixed>>
- Field specification for the captcha settings.
- creationell_captcha_register_settings() : void
- Registers the plugin setting, the per-tab sections and the fields.
- creationell_captcha_sanitize_settings() : array<string, mixed>
- Sanitises the settings array before it is stored.
- creationell_captcha_render_engine_section() : void
- Renders the description shown at the top of the Proof-of-Work-Engine section.
- creationell_captcha_render_widget_appearance_section() : void
- Renders the description shown at the top of the widget-appearance section.
- creationell_captcha_render_code_challenge_section() : void
- Renders the description shown at the top of the code-challenge section.
- creationell_captcha_render_core_forms_section() : void
- Renders the description shown at the top of the core-forms section.
- creationell_captcha_render_interceptor_section() : void
- Renders the description shown at the top of the interceptor section.
- creationell_captcha_render_form_plugins_section() : void
- Renders the description shown at the top of the form-plugins section.
- creationell_captcha_render_proxy_section() : void
- Renders the description shown at the top of the proxy section.
- creationell_captcha_render_bypass_section() : void
- Renders the description shown at the top of the bypass section.
- creationell_captcha_render_firewall_section() : void
- Renders the description shown at the top of the firewall section.
- creationell_captcha_render_ratelimit_section() : void
- Renders the description shown at the top of the rate-limiting section.
- creationell_captcha_render_underattack_section() : void
- Renders the description shown at the top of the under-attack section.
- creationell_captcha_render_underattack_appearance_section() : void
- Renders the description shown at the top of the under-attack appearance section.
- creationell_captcha_render_analytics_section() : void
- Renders the description shown at the top of the analytics section.
- creationell_captcha_render_email_section() : void
- Renders the description shown at the top of the email-protection section.
- creationell_captcha_render_field() : void
- Renders a single settings field.
Functions
creationell_captcha_admin_tabs()
Ordered list of the admin settings tabs.
creationell_captcha_admin_tabs() : array<string, string>
The array key is the tab id; it doubles as the suffix of the Settings-API
page slug (creationell-captcha-tab-<id>) that do_settings_sections() uses.
Return values
array<string, string> —Tab id => visible label.
creationell_captcha_admin_sections()
Settings sections and the tab each one belongs to.
creationell_captcha_admin_sections() : array<string, array<string, string>>
Section order within a tab follows this array's order.
Return values
array<string, array<string, string>> —Section id => { tab, title, callback }.
creationell_captcha_settings_fields()
Field specification for the captcha settings.
creationell_captcha_settings_fields() : array<string, array<string, mixed>>
Every field carries a section key naming the section (and thereby the tab)
it renders in; the section ids match creationell_captcha_admin_sections().
Return values
array<string, array<string, mixed>>creationell_captcha_register_settings()
Registers the plugin setting, the per-tab sections and the fields.
creationell_captcha_register_settings() : void
creationell_captcha_sanitize_settings()
Sanitises the settings array before it is stored.
creationell_captcha_sanitize_settings(mixed $input) : array<string, mixed>
Parameters
- $input : mixed
-
Raw input from the settings form.
Return values
array<string, mixed>creationell_captcha_render_engine_section()
Renders the description shown at the top of the Proof-of-Work-Engine section.
creationell_captcha_render_engine_section() : void
creationell_captcha_render_widget_appearance_section()
Renders the description shown at the top of the widget-appearance section.
creationell_captcha_render_widget_appearance_section() : void
creationell_captcha_render_code_challenge_section()
Renders the description shown at the top of the code-challenge section.
creationell_captcha_render_code_challenge_section() : void
Includes a warning notice when the PHP-GD extension is missing — without it, image rendering cannot work and the trigger logic stays disabled.
creationell_captcha_render_core_forms_section()
Renders the description shown at the top of the core-forms section.
creationell_captcha_render_core_forms_section() : void
creationell_captcha_render_interceptor_section()
Renders the description shown at the top of the interceptor section.
creationell_captcha_render_interceptor_section() : void
creationell_captcha_render_form_plugins_section()
Renders the description shown at the top of the form-plugins section.
creationell_captcha_render_form_plugins_section() : void
When no supported form plugin is active the section has no fields, so the description doubles as a hint.
creationell_captcha_render_proxy_section()
Renders the description shown at the top of the proxy section.
creationell_captcha_render_proxy_section() : void
creationell_captcha_render_bypass_section()
Renders the description shown at the top of the bypass section.
creationell_captcha_render_bypass_section() : void
creationell_captcha_render_firewall_section()
Renders the description shown at the top of the firewall section.
creationell_captcha_render_firewall_section() : void
creationell_captcha_render_ratelimit_section()
Renders the description shown at the top of the rate-limiting section.
creationell_captcha_render_ratelimit_section() : void
creationell_captcha_render_underattack_section()
Renders the description shown at the top of the under-attack section.
creationell_captcha_render_underattack_section() : void
creationell_captcha_render_underattack_appearance_section()
Renders the description shown at the top of the under-attack appearance section.
creationell_captcha_render_underattack_appearance_section() : void
creationell_captcha_render_analytics_section()
Renders the description shown at the top of the analytics section.
creationell_captcha_render_analytics_section() : void
creationell_captcha_render_email_section()
Renders the description shown at the top of the email-protection section.
creationell_captcha_render_email_section() : void
creationell_captcha_render_field()
Renders a single settings field.
creationell_captcha_render_field(array<string, mixed> $args) : void
Parameters
- $args : array<string, mixed>
-
Field arguments (key + field spec).