CreaCaptcha

Command
in package

Inspects and controls CreaCaptcha from the command line.

Table of Contents

Methods

disable()  : void
Disables a CreaCaptcha module.
enable()  : void
Enables a CreaCaptcha module.
info()  : void
Shows environment and diagnostic information.
repair()  : void
Repairs a CreaCaptcha installation: secrets, event-log table, missing default keys, version option.
stats()  : void
Shows the analytics counters per event type.
status()  : void
Shows the operational status: kill-switch, enabled modules, list sizes.
feature_map()  : array<string, string>
Maps CLI feature names to their boolean setting key.
set_feature()  : void
Toggles a feature's boolean setting.

Methods

disable()

Disables a CreaCaptcha module.

public disable(array<int, string> $args, array<string, string> $assoc_args) : void

Exit-Code 1, wenn der Schalter nicht gesetzt werden konnte — siehe enable.

OPTIONS

: Feature to disable: interceptor, firewall, ratelimit, underattack, event-log, email-obfuscation, code-challenge, comments, login, registration, password-reset, cf7, forminator, wpforms, woocommerce, wc-checkout, wc-login, wc-registration, wc-lost-password.

EXAMPLES

wp creacaptcha disable underattack
Parameters
$args : array<int, string>

Positional arguments.

$assoc_args : array<string, string>

Associative arguments.

enable()

Enables a CreaCaptcha module.

public enable(array<int, string> $args, array<string, string> $assoc_args) : void

Exit-Code 1, wenn der Schalter nicht gesetzt werden konnte — etwa weil das zugehörige Formular-Plugin nicht aktiv ist und die Einstellung deshalb gar nicht existiert (früher: Erfolgsmeldung mit Exit 0, ohne dass sich etwas änderte).

OPTIONS

: Feature to enable: interceptor, firewall, ratelimit, underattack, event-log, email-obfuscation, code-challenge, comments, login, registration, password-reset, cf7, forminator, wpforms, woocommerce, wc-checkout, wc-login, wc-registration, wc-lost-password.

EXAMPLES

wp creacaptcha enable firewall
Parameters
$args : array<int, string>

Positional arguments.

$assoc_args : array<string, string>

Associative arguments.

info()

Shows environment and diagnostic information.

public info(array<int, string> $args, array<string, string> $assoc_args) : void

OPTIONS

[--format=] : Output format (table, json, yaml, csv).

EXAMPLES

wp creacaptcha info
Parameters
$args : array<int, string>

Positional arguments.

$assoc_args : array<string, string>

Associative arguments.

repair()

Repairs a CreaCaptcha installation: secrets, event-log table, missing default keys, version option.

public repair(array<int, string> $args, array<string, string> $assoc_args) : void

Grenze des Werkzeugs (CLI-10): Repariert wird, was FEHLT — ein Secret, die Event-Log-Tabelle, ein Einstellungsschlüssel, die Versions-Option. Der INHALT vorhandener Einstellungswerte wird nicht gegen die Feldspezifikation geprüft; ein an den Plugin-Schreibwegen vorbei gesetzter Wert (wp option patch, direkter DB-Zugriff) überlebt repair und wird erst beim nächsten regulären Speichern normalisiert (Einstellungsseite speichern oder wp creacaptcha settings set <key> <wert>).

OPTIONS

[--yes] : Skip the confirmation prompt.

EXAMPLES

wp creacaptcha repair
Parameters
$args : array<int, string>

Positional arguments.

$assoc_args : array<string, string>

Associative arguments.

stats()

Shows the analytics counters per event type.

public stats(array<int, string> $args, array<string, string> $assoc_args) : void

OPTIONS

[--window=] : Time window: 24h, 7d, 30d, 90d or all. Default: all.

[--format=] : Output format (table, json, yaml, csv).

EXAMPLES

wp creacaptcha stats --window=7d
Parameters
$args : array<int, string>

Positional arguments.

$assoc_args : array<string, string>

Associative arguments.

status()

Shows the operational status: kill-switch, enabled modules, list sizes.

public status(array<int, string> $args, array<string, string> $assoc_args) : void

OPTIONS

[--format=] : Output format (table, json, yaml, csv).

EXAMPLES

wp creacaptcha status
Parameters
$args : array<int, string>

Positional arguments.

$assoc_args : array<string, string>

Associative arguments.

feature_map()

Maps CLI feature names to their boolean setting key.

private feature_map() : array<string, string>
Return values
array<string, string>

set_feature()

Toggles a feature's boolean setting.

private set_feature(string $feature, bool $on) : void
Parameters
$feature : string

CLI feature name.

$on : bool

Target state.


        
On this page

Search results