
內容簡介
總結:
Smart Content Sync 是一個外掛程式,讓您可以建立可重複使用的內容區塊,並在文章、頁面和 WooCommerce 產品中一致地插入它們,而無需複製貼上。透過創建一次智能內容,便可以手動或自動重複使用,同時保持唯一的真實來源。該外掛程式設計用於提升效能、編輯控制和長期可擴展性。
問與答:
1. 外掛程式中的 Smart Content 是指什麼?
- 可重複使用的內容區塊 (自訂文章類型)
2. 外掛程式支援哪些編輯器整合?
- 在 Classic Editor 中有 TinyMCE 按鈕可插入 Smart Content
- 在 Gutenberg 中有動態 Smart Content 區塊
3. 智能內容外掛的自動插入功能在哪些地方可以執行?
- 可以在 WordPress 內容上方或下方插入
- 可以在 WooCommerce 單一產品頁面的特定位置插入
4. 智能內容支援哪些內容上下文變數?
- 網站
- 文章 / 頁面
- WooCommerce 產品
- Shortcode 屬性
5. 外掛程式的安全性是如何確保的?
- 有專用於 Smart Content 的功能性
- 防範渲染於管理員畫面、RSS 訂閱、REST 情境和 SEO 分析要求中
6. 如何調整外掛程式的設定?
- 可在 Smart Content 下的中央設定頁面進行設定,包括在解除安裝時選擇是否刪除 Smart Content 文章。
外掛標籤
開發者團隊
原文外掛簡介
Smart Content Sync lets you create reusable content blocks and insert them consistently across posts, pages, and WooCommerce products — without copy‑pasting.
Instead of duplicating content everywhere, you create it once as Smart Content and reuse it manually or automatically, while keeping a single source of truth.
This plugin is designed for performance, editorial control, and long‑term scalability.
Development / Source Code
This plugin ships compiled assets in /dist for performance.
Human-readable source is included in /resources.
Build instructions:
1) npm install
2) npm run build (or “npm run dev” for the dev build)
Core concepts
Smart Content = reusable content blocks (custom post type)
Single rendering pipeline for frontend, editors, previews, and auto‑insert
Predictable behavior with explicit rules (no magic, no surprises)
Features
Smart Content Blocks
Dedicated Smart Content custom post type
Centralized editing with live preview
Internal notes for editors (never shown on frontend)
Editor Integrations
Classic Editor
TinyMCE button to insert Smart Content
Gutenberg
Dynamic Smart Content block
Shortcodes
[smart_content id="123"]
[smart_content slug="shipping-policy"]
Auto Insert (v1.0 Free)
Automatically inject Smart Content at predefined locations.
Supported locations:
* WordPress content
* Prepend to content
* Append to content
* WooCommerce
* Single product page locations
Runtime guarantees:
* WordPress:
* Runs on is_singular() only
* No archives
* WooCommerce:
* Single product pages only
* Never runs in:
* Admin
* REST requests
* Feeds
* Previews
Ordering:
* Auto‑inserted blocks render in Smart Content order
* Ordering is stable across saves and index rebuilds
Performance:
* Uses an internal option‑based index
* Avoids slow meta queries at runtime
Smart Variables
Smart Content supports context‑aware variables via a unified rendering pipeline.
Available contexts include:
* Site
* Post / Page
* WooCommerce product
* Shortcode attributes
Rendering is consistent across:
* Frontend
* Editors
* Previews
* Auto‑insert
SEO Analysis Compatibility (v1.0)
Smart Content manual inserts are visible to SEO analyzers
Server-side rendering ensures analyzers see expanded HTML (not placeholders)
Draft-aware analysis:
Unsaved editor changes are included during SEO analysis
Supported SEO plugin:
Yoast SEO
Not included in v1.0:
* Auto Inserted Smart Content is not yet included in SEO analysis
* Additional SEO plugins (Rank Math, AIOSEO) are planned for future releases
Permissions & Safety
Dedicated capabilities for Smart Content
Rendering guarded against:
Admin screens
Feeds
REST contexts
SEO analysis requests
Settings
Central Settings page under Smart Content
Uninstall behavior option:
Optional deletion of Smart Content posts on uninstall
Uninstall Behavior
By default, uninstalling Smart Content Sync will:
* Remove internal caches and runtime options
* Preserve all Smart Content posts and metadata
You may optionally enable deletion of Smart Content posts from:
Smart Content → Settings → Uninstall
Extensibility
Smart Content Sync exposes filters and hooks for:
* Auto‑insert locations
* Rendering behavior
* Smart Variable contexts
* Permissions and guards
The architecture is intentionally designed to support future Pro features without breaking v1.0 behavior.
License
This plugin is licensed under the GPLv2 or later.
