百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

Learn

> 编程语言
开源

WordPress.org Learn - https://learn.WordPress.org 页面背后代码和内容的标准来源

327 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

WordPress.org Learn - https://learn.WordPress.org 页面背后代码和内容的标准来源

WP - Learn WordPress

The details below will walk you through getting set up to contribute to the code behind https://learn.wordpress.org. If you are interested in contributing to the content or translation of the content hosted on the site, you'll find further guidance in the Training Team Handbook. Content development is tracked on this GitHub repository in this project board.

Getting Started Workshops

If you're interested in contributing to the site, but aren't sure where to start, we have a series of workshops to help you get started.

  • Contributing to Learn WordPress with code – part 1
  • Contributing to Learn WordPress with code – part 2

Prerequisites

  • Docker
  • Node/NPM
  • Yarn
  • Composer
  • SVN
  • NVM or N (optional)

Setup

  1. nvm use or ensure you are running the Node version specified in the .nvmrc file
  2. yarn
  3. yarn run create
  4. Visit site at localhost:8888
  5. To watch for changes yarn start:theme

Apple Silicone machines and old MySQL versions

If you are on a Mac using Apple Silicon processors (M1, M2, etc.) and you experience MySQL related errors on setup, you may need to override the Docker MySQL config settings.

Starting Environment

If you have already set up the environment using yarn run create, you can start it with:

bash
yarn run wp-env start

Stopping Environment

bash
yarn run wp-env stop

Removing Environment

bash
yarn run wp-env destroy

Admin

Since the local environment uses wp-env, it automatically comes with an admin user, with admin/password for the credentials.

Development

While working on the theme & plugin, you might need to rebuild the CSS or JavaScript.

To build all projects, you can run:

bash
yarn build

To build one project at a time, run:

bash
yarn workspace wporg-locale-switcher build
yarn workspace wporg-learn-2024 build
yarn workspace wporg-learn-plugin build

If you want to watch for changes, run:

bash
yarn start:locale-switcher
yarn start:theme
yarn start:plugin

Linting

This project has eslint, stylelint, and phpcs set up for linting the code. This ensures all developers are working from the same style.

To lint everything run:

bash
yarn lint

To lint one language run one of:

bash
yarn lint:js
yarn lint:css
yarn lint:php

To check an individual project before pushing to the repo, run one of:

bash
yarn workspace wporg-locale-switcher lint:css
yarn workspace wporg-locale-switcher lint:js
yarn workspace wporg-learn-2024 lint:css
yarn workspace wporg-learn-2024 lint:js
yarn workspace wporg-learn-plugin lint:css
yarn workspace wporg-learn-plugin lint:js
composer run lint

Linting will also be run automatically on each PR.

Contributing

If you'd like to contribute to the project, please read the Developing Learn WordPress page in our team handbook.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPhacktoberfestwordpresswporg

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言