Title: Synced Patterns for Themes
Author: Twenty Bellows
Published: <strong>2025 年 8 月 14 日</strong>
Last modified: 2025 年 8 月 14 日

---

搜索插件

![](https://ps.w.org/synced-patterns-for-themes/assets/icon.svg?rev=3344797)

# Synced Patterns for Themes

 作者：[Twenty Bellows](https://profiles.wordpress.org/twentybellows/)

[下载](https://downloads.wordpress.org/plugin/synced-patterns-for-themes.1.2.1.zip)

 * [详情](https://cn.wordpress.org/plugins/synced-patterns-for-themes/#description)
 * [评价](https://cn.wordpress.org/plugins/synced-patterns-for-themes/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/synced-patterns-for-themes/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/synced-patterns-for-themes/#developers)

 [支持](https://wordpress.org/support/plugin/synced-patterns-for-themes/)

## 描述

This plugin enables theme developers to ship patterns that behave as synced patterns(
reusable blocks) while maintaining the benefits of theme-bundled patterns. When 
a theme pattern is marked as synced, it automatically becomes available as a reusable
block that updates across all instances when modified.

 * **Theme-Provided Synced Patterns**: Convert any theme pattern into a synced pattern
   by adding a simple metadata flag
 * **Automatic Synchronization**: Updates to synced patterns propagate across all
   instances site-wide
 * **Block Bindings Support**: Full compatibility with WordPress block bindings
 * **Template Integration**: Use synced patterns in templates and template parts
 * **Seamless User Experience**: Synced patterns appear naturally in the pattern
   inserter

### Usage

#### For Theme Developers

To make a theme pattern synced, add `Synced: true` to the pattern file’s metadata
header:

    ```
    <?php
    /**
     * Title: My Synced Pattern
     * Slug: mytheme/my-pattern
     * Categories: featured
     * Synced: true
     */
    ?>
    <!-- Your pattern blocks here -->
    ```

#### Using Synced Patterns in Templates

Reference synced patterns in templates or other patterns using the pattern block:

    ```
    <!-- wp:pattern {"slug":"mytheme/my-pattern"} /--><h3>Development</h3>
    ```

The plugin source is available on [GitHub](https://github.com/twenty-bellows/synced-patterns-for-themes).

Node & NPM are needed to install and run the development tools:

 * `npm run start` – Start the development environment
 * `npm run stop` – Stop the development environment
 * `npm run test` – Run unit tests (requires running environment)
 * `npm run build` – Build production assets

See the source for more details.

## 安装

 1. Download the plugin from the [WordPress Plugin Directory](https://wordpress.org/plugins/synced-patterns-for-themes/)
    or [GitHub](https://github.com/twenty-bellows/synced-patterns-for-themes)
 2. Upload to your `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

「Synced Patterns for Themes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Twenty Bellows ](https://profiles.wordpress.org/twentybellows/)
 *   [ Jason Crist ](https://profiles.wordpress.org/pbking/)

[帮助将「Synced Patterns for Themes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/synced-patterns-for-themes)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/synced-patterns-for-themes/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/synced-patterns-for-themes/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/synced-patterns-for-themes/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/synced-patterns-for-themes/)。

## 更新日志

#### 1.0.0

 * Initial release

#### 1.2.0

 * Enhanced pattern synchronization using logic from Pattern Builder

#### 1.2.1

 * Improved Documentation

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**10 月前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 6.6 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/synced-patterns-for-themes/)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)
 *  [高级视图](https://cn.wordpress.org/plugins/synced-patterns-for-themes/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/synced-patterns-for-themes/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/synced-patterns-for-themes/reviews/)

## 贡献者

 *   [ Twenty Bellows ](https://profiles.wordpress.org/twentybellows/)
 *   [ Jason Crist ](https://profiles.wordpress.org/pbking/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/synced-patterns-for-themes/)