WordPress Coding Standards — a practical guide to WordPress coding standards with clear examples you can reuse in real projects.
WordPress Plugin Development Series (14/95). Prefer one article? Read the complete WordPress plugin development tutorial.
Short description
Use WordPress naming, Yoda-friendly comparisons where required by WPCS, proper escaping, and PHPCS with WordPress rulesets.
Style tips
- Prefix functions/classes/options
- Escape output, sanitize input
- Use strict comparisons when sensible
- Keep files focused and documented