wordpress

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

WordPress

WordPress

WordPress 6.6 (2025) continues the Full Site Editing (FSE) revolution. Everything is a block.
WordPress 6.6(2025版)延续了**Full Site Editing (FSE,全站编辑)**的革新。所有内容都是区块(Block)。

When to Use

适用场景

  • Content Sites: Blogs, News, Marketing sites.
  • Client Handoff: Clients know the WP Admin interface.
  • E-commerce: WooCommerce is standard.
  • 内容类网站:博客、新闻站、营销网站。
  • 客户交接:客户熟悉WP Admin界面。
  • 电商网站:WooCommerce是标准方案。

Core Concepts

核心概念

Gutenberg (Block Editor)

Gutenberg(区块编辑器)

React-based editor.
blocks
are the unit of content.
基于React的编辑器。
blocks
是内容的基本单元。

Themes (Block Themes)

主题(区块主题)

composed of
html
parts and
theme.json
, reducing PHP usage.
html
部件和
theme.json
构成,减少PHP的使用。

Plugins

插件

The ecosystem hook system (actions/filters).
生态系统的钩子系统(动作/过滤器)。

Best Practices (2025)

2025年最佳实践

Do:
  • Use
    theme.json
    : For defining global styles.
  • Use Bedrock: For 12-factor (Git-controlled) WordPress.
  • Use Headless: WP as an API (GraphQL) + Next.js frontend if needed.
Don't:
  • Don't edit core: Never touch
    wp-includes
    .
建议
  • 使用
    theme.json
    :用于定义全局样式。
  • 使用Bedrock:用于符合12要素(Git版本控制)的WordPress项目。
  • 使用无头架构:将WP作为API(GraphQL),必要时搭配Next.js前端。
禁忌
  • 不要修改核心文件:永远不要触碰
    wp-includes
    目录。

References

参考资料