wordpress-coding-standards

Reference WordPress and PHP coding standards for security and naming conventions.

1|Updated Apr 20, 2025
One-click install
npx skills add https://github.com/j7-dev/wp-power-checkout --skill wordpress-coding-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wordpress-coding-standards
Source: https://github.com/j7-dev/wp-power-checkout/tree/main/.github/skills/wordpress-coding-standards
Command: npx skills add https://github.com/j7-dev/wp-power-checkout --skill wordpress-coding-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for WordPress and PHP coding standards, ensuring code quality, security, and maintainability for developers and reviewers.

Core Features & Use Cases

  • Code Quality Enforcement: Details strict type declarations, naming conventions, and PHPDoc standards.
  • Security Best Practices: Covers SQL injection prevention, XSS output filtering, CSRF protection, and capability checks.
  • WooCommerce Compatibility: Guides on HPOS and block checkout compatibility.
  • Use Case: A developer needs to ensure their new WordPress plugin adheres to best practices before submission. They consult this Skill for guidelines on security, naming, and structure.

Quick Start

Consult the wordpress-coding-standards skill for guidelines on secure WordPress plugin development.

Frequently Asked Questions about wordpress-coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the WordPress coding standards for PHP security and naming conventions?

WordPress coding standards for PHP security cover SQL injection prevention, XSS output filtering, and CSRF protection, alongside strict type declarations and naming conventions to ensure code quality and maintainability.

How do I ensure my WordPress plugin follows PHP coding standards before submission?

To ensure a WordPress plugin follows PHP coding standards, consult a comprehensive reference manual covering security best practices, strict type declarations, PHPDoc standards, and architectural patterns before submission.

Does this WordPress coding reference include WooCommerce compatibility guidelines?

Yes, the WordPress coding reference includes WooCommerce compatibility guidelines, specifically covering HPOS and block checkout compatibility to ensure plugin interoperability.

What's the best way to implement capability checks and prevent SQL injection in WordPress?

The best way to implement capability checks and prevent SQL injection in WordPress is by following security best practices detailed in a comprehensive PHP coding standards reference, covering both input validation and secure database queries.

How does the WordPress hook system fit into PHP architectural patterns for developers?

The WordPress hook system fits into PHP architectural patterns by providing a structured extension mechanism, detailed in coding standards references to guide developers and reviewers in maintaining consistent plugin architecture.