Wp Plugin Security

Security guidelines for WordPress plugin development: sanitization, validation, escaping (in PHP and in admin JavaScript), nonces, capabilities over objects, multisite privilege boundaries, SQL injection prevention, XSS protection, and CSRF mitigation. Use it when writing or reviewing any plugin code that handles user input, prints dynamic output, registers AJAX or REST endpoints, checks permissions, writes files shared by a network, or suppresses PHPCS security sniffs. Based on official WordPress Developer Resources and on a post-incident review of CVE-2026-81754.

fernandotellado Updated

File contents

fernandotellado/ai-skills/tree/main/wp-plugin-security commit 87ad3a700f

Frequently asked questions

npx skillmds@latest add fernandotellado/wp-plugin-security-2