wordpress
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWordPress
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. are the unit of content.
blocks基于React的编辑器。是内容的基本单元。
blocksThemes (Block Themes)
主题(区块主题)
composed of parts and , reducing PHP usage.
htmltheme.json由部件和构成,减少PHP的使用。
htmltheme.jsonPlugins
插件
The ecosystem hook system (actions/filters).
生态系统的钩子系统(动作/过滤器)。
Best Practices (2025)
2025年最佳实践
Do:
- Use : For defining global styles.
theme.json - 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