Skip to content
Corex

WpMailInterceptor

Corex\Mail\Capture\WpMailInterceptor · class · Core layer

Asks the gate about every wp_mail() call: CoreX’s own last resorts, WordPress core and other plugins (spec 113, research R3). Answering true tells WordPress the email was handled and nothing is sent; false makes wp_mail() report a failure; null lets it send.

__construct(MailGate $gate, MailPath $paths)

Section titled “__construct(MailGate $gate, MailPath $paths)”

intercept(mixed $return, array $atts): mixed

Section titled “intercept(mixed $return, array $atts): mixed”