• 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

WordPress コーディング規約

提供: WordPress Codex 日本語版
2016年8月17日 (水) 01:17時点におけるAkira Tachibana (トーク | 投稿記録)による版 (「WordPress Coding Standards」 (2016/8/17時点) を反映)

(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

The purpose of the WordPress Coding Standards is to create a baseline for collaboration and review within various aspects of the WordPress open source project and community, from core code to themes to plugins.

The WordPress community developed the standards contained in this section of the handbook, and those standards are part of the best practices that developers and core contributors are recommended to follow.

Why have coding standards?

Coding standards help avoid common coding errors, improve the readability of code, and simplify modification. They ensure that files within the project appear as if they were created by a single person.

Following the standards means anyone will be able to understand a section of code and modify it, if needed, without regard to when it was written or by whom.

If you are planning to contribute to WordPress core, you need to familiarize yourself with these standards, as any code you submit will need to comply with them.

Language-specific Standards

  • PHP Coding Standards
  • Accessibility Coding Standards
  • CSS Coding Standards
  • HTML Coding Standards
  • JavaScript Coding Standards