Prompt-Injection Hygiene for WordPress AI Plugins: Sanitising User Input, Locking Tool Boundaries and Validating Model Output
Build a reusable guard class for WordPress plugins that call an LLM: sanitise user text, delimit untrusted data, whitelist tools, validate JSON…
Read tutorial
Practical WordPress tutorials for themes, plugins, and real builds.
Latest tutorial
Advanced WordPress Topic
Stop Leaking OpenAI Keys in WordPress: Build a REST Proxy with Capability Checks, Rate Limits and Logging
Keep your OpenAI key in wp-config, then expose a locked-down WordPress REST proxy with capability checks, nonce validation, transient rate limits and secret-free logging.
Read tutorial
More tutorials
Prompt-Injection Hygiene for WordPress AI Plugins: Sanitising User Input, Locking Tool Boundaries and Validating Model Output
Build a reusable guard class for WordPress plugins that call an LLM: sanitise user text, delimit untrusted data, whitelist tools, validate JSON…
Read tutorial
PHP2Shell Critical RCE: Protect WordPress Before and After the Patch
CVE-2026-109618 and CVE-2026-109619 hit PHP itself. Check your version, disable session upload progress as a stopgap, harden the edge, then install the…
Read tutorial
Build an AI Rewrite Tool in the Gutenberg Editor Sidebar (Streaming, Abortable, Nonce-Protected)
Build a Gutenberg sidebar plugin that streams AI rewrites token by token, cancels with AbortController, and keeps your API key server-side behind…
Read tutorial
Auto-Generate Image Alt Text on Upload with OpenAI Vision and a Human Review Queue
Queue a vision-model alt text suggestion on upload, cap monthly spend, and approve it from a Media Library review screen before it…
Read tutorial