CreaCaptcha

Test_Bypass_Command
in package

`wp creacaptcha test-bypass`

Table of Contents

Methods

__invoke()  : void
Simulates the bypass evaluation with the supplied flag values. Flags are optional — anything not provided is treated as non-matching.

Methods

__invoke()

Simulates the bypass evaluation with the supplied flag values. Flags are optional — anything not provided is treated as non-matching.

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

Exit code: 0 if the request would be bypassed, 1 otherwise.

OPTIONS

[--ip=] : IP address (IPv4 or IPv6) to test against the IP allowlist.

[--ua=] : User-Agent string to test against the UA bypass patterns.

[--cookie=<name_value>] : Cookie pair to test against the cookie bypass list (format: name=value). The flag may be repeated. Each value must contain exactly one = — the part before the first = is the cookie name.

EXAMPLES

wp creacaptcha test-bypass --ip=203.0.113.4
wp creacaptcha test-bypass --ua="Mozilla/5.0"
wp creacaptcha test-bypass --cookie="my_pass=abc"
wp creacaptcha test-bypass --ip=203.0.113.4 --ua="GoogleBot" --cookie="my_pass=abc"
Parameters
$args : array<int, string>

Positional arguments.

$assoc_args : array<string, string|array<int, string>>

Associative arguments.

Tags
when

after_wp_load


        
On this page

Search results