[WordPress] 外掛分享: Coaderhub Reusable Blocks

首頁 › 外掛目錄 › Coaderhub Reusable Blocks
WordPress 外掛 Coaderhub Reusable Blocks 的封面圖片
全新外掛
安裝啟用
—
尚無評分
18 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-09-27

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Coaderhub Reusable Blocks」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Coaderhub Reusable Blocks provides a simple way to create and manage reusable content that can be displayed in different areas of a WordPress website.
Create a reusable content block from the WordPress admin and display it using a shortcode or the provided PHP function.
The plugin uses standard WordPress functionality and keeps frontend output simple so your active theme remains in control of the design.
Content block content is processed using WordPress content sanitization before it is stored and displayed.
Arbitrary JavaScript, CSS, or PHP entered into a content block is not executed by the plugin.
Supported iframe content is restricted to approved HTTPS embed providers.
Features

Create and manage reusable content blocks
Use content blocks with shortcodes
Display content blocks with PHP
Use block IDs or slugs with shortcodes
Categories for organizing content
WordPress revisions
Featured images
Preview content
Duplicate content
Custom CSS classes
Simple admin list with shortcode and ID
WordPress permissions and nonce protection
REST API support
Sanitized content output
Restricted HTTPS iframe embeds

Usage
Create a reusable content block from:
Coaderhub Reusable Blocks > Add New Reusable Block
After publishing, you can use the shortcode:
[coaderhub id=”123″]
Replace 123 with the ID of your reusable content block.
You can also use the block slug:
[coaderhub id=”homepage-cta”]
Additional shortcode attributes are available:
[coaderhub id=”123″ plain=”1″]
You can also specify a wrapper element:
[coaderhub id=”123″ wrapper=”section”]
Custom CSS classes can be added:
[coaderhub id=”123″ class=”homepage-cta”]
PHP Usage
Developers can display a reusable content block from their theme or plugin code using the provided PHP function:
echo coaderhub_show_content_block( 123 );
You can also use a slug:
echo coaderhub_show_content_block( ‘homepage-cta’ );
Optional attributes are supported:
echo coaderhub_show_content_block(
123,
array(
‘plain’ => ‘1’,
‘wrapper’ => ‘section’,
‘class’ => ‘homepage-cta’,
)
);
The PHP function is intended to be called from theme or plugin code.
PHP code entered into a content block is not executed by the plugin.
Privacy
Coaderhub Reusable Blocks does not send content or personal data to external services.
Content is stored using the standard WordPress database.
The plugin does not require an external account or third-party service.

延伸相關外掛

文章
Filter
Mastodon