高级管理文档

WordPress 开发资源指南

💡 云策文档标注

概述

本文档为 WordPress 主题和插件开发者提供 HTML、CSS、PHP 和 JavaScript 的核心学习资源,旨在帮助快速入门和高效开发,而非详尽列表。

关键要点

  • 推荐使用 Learn WordPress、freeCodeCamp 等平台学习基础 Web 开发技能,包括 HTML、CSS、JavaScript 和 React。
  • 强调遵循 WordPress Coding Standards 和 Inline Documentation Standards 以保持代码质量。
  • 提供针对 HTML、CSS、JavaScript 和 PHP 的具体资源链接,如 W3Schools、MDN、CSS Tricks 和 PHP The Right Way。
  • 建议参考 Theme Developer Handbook、Plugin Developer Handbook 和 Block Editor Handbook 作为补充指南。
  • 列出相关书籍资源,如 WebDev Studios 的 WordPress 书籍和《You Don’t Know JS》系列。

📄 原文内容

As you design your WordPress theme or build a plugin, you will be using a combination of HTML, CSS, PHP, and JavaScript (JS).

There are plenty (probably too many) resources online for you to get started with these web languages. It can be overwhelming!

With this resource page, we hope to focus on resources and guides that will help you the most to provide clear guidance and instruction on using HTML, CSS, PHP, and JS. This is nowhere near an exhaustive list, only meant to help you get started.

We recommend that you save or bookmark this page as a reference for learning while you’re working on your WordPress theme or plugin. See also:
Theme Developer Handbook
Plugin Developer Handbook
Block Editor Handbook.

General Web Development Education

WordPress.org has released Learn WordPress which will guide you through several topics around developing for WordPress.

freeCodeCamp is a free and open source education platform and is not WordPress-specific. They offer instruction, demo projects, and their own certification that have helped millions learn HTML, CSS and JavaScript.

They will teach you the basics of HTML and CSS in their Responsive Web Design course.

If you’d like to dive deeper with JavaScript, you can do so in their Front End Development Libraries course, which will get you started with JavaScript and even React, which will be helpful for you to developer themes, plugins, and especially blocks.

Unfortunately, there’s currently no PHP course.

Also, since you’ll be writing code, it would be good to familiarize yourself with the WordPress Coding Standards and Inline Documentation Standards.

Beyond that, these are some resources you might find helpful for each of the languages.

HTML

CSS

If this is your first time using CSS with WordPress, this document provides a fantastic overview

Other than that, these are some solid resources for you to review:

JavaScript

PHP

Books