Encrypt WordPress AI Plugin API Keys at Rest with Sodium: Capability-Gated Decryption and Key Rotation
Store AI provider keys as sodium_crypto_secretbox ciphertext sealed by your wp-config salts, decrypt only behind manage_options, and rotate keys with WP-CLI.
Read tutorial
Practical WordPress tutorials for themes, plugins, and real builds.
Latest tutorial
Advanced WordPress Topic
AI Content Provenance for WordPress: Log Model, Prompt Hash and Token Usage per Post with a Review Diff
Log the model, prompt hash, token counts and reviewing user for every AI-assisted post, then audit the change per post with a capability-gated diff.
Read tutorial
More tutorials
Encrypt WordPress AI Plugin API Keys at Rest with Sodium: Capability-Gated Decryption and Key Rotation
Store AI provider keys as sodium_crypto_secretbox ciphertext sealed by your wp-config salts, decrypt only behind manage_options, and rotate keys with WP-CLI.
Read tutorial
AI Translation Workflow for WordPress Posts: Glossary-Aware LLM Drafts with Human Review and Locale Linking
Build a glossary-aware LLM translation pipeline for WordPress: block chunking, strict JSON schema, source hashing, draft creation and portable locale linking.
Read tutorial
AI Internal Linking Suggestions in Gutenberg: Embedding Similar Posts with Human-Approved Insert
Build a Gutenberg sidebar that compares post embeddings over a capability-checked REST endpoint, surfaces five internal link candidates, and inserts only on…
Read tutorial
AI-Powered Dynamic Pricing for WooCommerce: Using LLMs to Suggest Optimal Prices
Build a WooCommerce extension that feeds sales velocity, unit cost and competitor data to an LLM, then clamps the suggested price with…
Read tutorial
Data Anonymisation Layer: Protecting PII Before Sending Data to External AI APIs
Build a WordPress middleware layer that detects and tokenises emails, phones, postcodes and names before prompts reach OpenAI, then restores them in…
Read tutorial
Backfill Post Embeddings at Scale: A Resumable WP-CLI Command with OpenAI Batches and Cost Guardrails
Build a resumable WP-CLI command that chunks existing posts, batches OpenAI embedding calls through wp_remote_post, stores vectors by content hash and prints…
Read tutorial