CreaCaptcha

interceptor.php

Interceptor bootstrap: init-hook registration and the developer API.

Table of Contents

Functions

creationell_captcha_run_interceptor()  : void
Runs the request interceptor. Hooked on `init` at priority 1 so it fires before any form-processing handler.
creationell_captcha_protect_path()  : void
Registers one or more path patterns to be guarded by the interceptor.

Functions

creationell_captcha_run_interceptor()

Runs the request interceptor. Hooked on `init` at priority 1 so it fires before any form-processing handler.

creationell_captcha_run_interceptor() : void

creationell_captcha_protect_path()

Registers one or more path patterns to be guarded by the interceptor.

creationell_captcha_protect_path(string|array<int, string> $patterns) : void

Developer API — later form-plugin integrations call this to protect their submission endpoints without an admin entering patterns by hand. The patterns are merged into the creationell_captcha_interceptor_paths filter.

Parameters
$patterns : string|array<int, string>

A path pattern or list of patterns.


        
On this page

Search results