tools-actions.php
admin-post.php action handlers for the "Werkzeuge" page.
Table of Contents
Functions
- creationell_captcha_tools_redirect() : never
- Stores a one-shot admin notice and redirects back to the Werkzeuge page.
- creationell_captcha_tools_guard() : void
- Guards a tools action: requires manage_options and a valid nonce.
- creationell_captcha_handle_export_settings() : void
- Streams the current settings as a JSON download.
- creationell_captcha_handle_import_settings() : void
- Handles the settings-import upload.
- creationell_captcha_handle_reset_settings() : void
- Handles the full factory reset.
- creationell_captcha_handle_load_defaults() : void
- Handles "load defaults" (keeps the lists).
- creationell_captcha_handle_cloudflare_refresh() : void
- Triggers a manual Cloudflare-range refresh from the Werkzeuge page.
- creationell_captcha_handle_cloudflare_clear() : void
- Empties the cached Cloudflare-range option from the Werkzeuge page.
Functions
creationell_captcha_tools_redirect()
Stores a one-shot admin notice and redirects back to the Werkzeuge page.
creationell_captcha_tools_redirect(string $type, string $message) : never
Parameters
- $type : string
-
'success' or 'error'.
- $message : string
-
Notice text.
Return values
nevercreationell_captcha_tools_guard()
Guards a tools action: requires manage_options and a valid nonce.
creationell_captcha_tools_guard(string $action) : void
Parameters
- $action : string
-
The nonce action name.
creationell_captcha_handle_export_settings()
Streams the current settings as a JSON download.
creationell_captcha_handle_export_settings() : void
creationell_captcha_handle_import_settings()
Handles the settings-import upload.
creationell_captcha_handle_import_settings() : void
creationell_captcha_handle_reset_settings()
Handles the full factory reset.
creationell_captcha_handle_reset_settings() : void
creationell_captcha_handle_load_defaults()
Handles "load defaults" (keeps the lists).
creationell_captcha_handle_load_defaults() : void
creationell_captcha_handle_cloudflare_refresh()
Triggers a manual Cloudflare-range refresh from the Werkzeuge page.
creationell_captcha_handle_cloudflare_refresh() : void
creationell_captcha_handle_cloudflare_clear()
Empties the cached Cloudflare-range option from the Werkzeuge page.
creationell_captcha_handle_cloudflare_clear() : void