
內容簡介
WP Smart Content 是一款智慧且簡單的 WordPress 擴充套件,可以協助我們將內容加入到 WordPress 模板中。程式碼區塊可以取名稱,並可以新增到特定的文章或網頁,或是新增到全網站。該外掛可以將不同的內容,例如 HTML、JavaScript 和 CSS 推送到 WordPress 文章或網頁的不同部位。
例如,加入腳本到頁首區段,或加入 HTML 到頁腳中。這些內容都會儲存在 WordPress 資料庫中,方便管理。此外,該外掛可以從一個中心設定頁面輕鬆管理新增特定或全部文章和網頁上的追蹤代碼、樣式或 HTML。
網站
文件
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Easily inject HTML, CSS, JS, styles, scripts & tracking code via hooks / shortcodes with safe mode, scheduling, revisioning & geotargeting.
⏱ Schedule when you want
Define start and end dates so snippets appear only when needed — ideal for campaigns, seasonal banners, or compliance notices.
📍 Publish where you want
Inject HTML, JavaScript, or CSS styles into any WordPress hook — Classic or Block Hook — without editing templates. Embed blocks directly inside posts, pages, or widgets using shortcodes.
🌍 Filter where you want
Control visibility across WordPress sections: all, frontend, posts, pages, backend (Admin), authentication, and system pages. Apply filters to selected posts or pages for complete flexibility.
🌐 Target who you want
Use geotargeting to display blocks only to visitors from selected countries. Configure rules to include or exclude specific regions.
🔒 Manage safely by whom you want
Administrators can use Raw Mode (unfiltered output) or Safe Mode (sanitized injection). Non-admins can be granted limited Safe Mode access via the wpsc_admin capability, making delegation secure.
🗂 Revision when you want
Retrieve, compare, and restore block editor content with full revision management. Delete outdated revisions safely to keep the database clean and audit-friendly.
🖊️ Edit how you want
Includes a built-in editor with dedicated sections for HTML, CSS, and JavaScript, plus Preview and Error panels. Syntax highlighting improves readability, while instant error feedback ensures safe workflows.
✅ Why WP Smart Content?
By combining scheduling, hook targeting, filtering, geotargeting, role-based permissions, revisioning, and a syntax-highlighted editor, WP Smart Content ensures snippets are placed exactly where and when you want them — managed safely by the right people. It’s a compliance-ready, SEO-friendly solution that keeps your WordPress site secure, scalable, and easy to maintain. Supports Classic & Block Hooks, grouped dropdowns, translation readiness, and a reviewer-friendly modular codebase with clear documentation.
✨ Key Features
Classic Hooks: Inject content into wp_head, wp_footer, styles, scripts, meta, and footer scripts.
Block Hooks (WP 6.8+): Add content anywhere via the block editor UI.
Grouped dropdowns: Organized separation of Classic and Block Hooks in admin.
Translation ready: Updated .pot file for localization.
Reviewer-friendly: Modular code, clear docs, and WordPress coding standards compliance.
💡 Use Cases
Add a script to the
section without editing theme files.Insert HTML into the
