[WordPress] 外掛分享: PAT Tab Studio for WooCommerce

首頁外掛目錄 › PAT Tab Studio for WooCommerce
WordPress 外掛 PAT Tab Studio for WooCommerce 的封面圖片
全新外掛
安裝啟用
尚無評分
12 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.2.1 上架:2026-07-04

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PAT Tab Studio for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Add per-product custom tabs to WooCommerce with WYSIWYG content, ordering, and enable controls.
Each product can define its own tab labels, tab content, order, and enabled state. The admin UI uses a repeater so you only add the tabs you want for that product. The plugin stores tab data in product post meta and renders only the tabs that contain content for that specific product.
This is intentionally not a global tab plugin and does not assign tabs by category.
Usage

Open a WooCommerce product for editing.
Click Add Tab for each tab you want to create.
Enable the row.
Enter the tab label.
Enter rich WYSIWYG content, shortcodes, or embed HTML.
Drag rows to sort them, or set the order number manually.
Update the product.

Tabs only appear on the frontend when they are enabled and have content.
Example
To add a product-specific FAQ tab:
1. Edit the product.
2. Click Add Tab.
3. Change the label to FAQ or Common Questions if desired.
4. Add your FAQ content.
5. Set the order number to 90 or another value you prefer.
Extending
Developers can extend the repeater behavior with filters such as:

pat_product_tabs_loaded_rows
pat_product_tabs_sanitized_rows
pat_product_tabs_frontend_tabs

Example:
`php

add_filter(‘pat_product_tabs_frontend_tabs’, function ($tabs, $product_id) {
$tabs[‘pat_product_tab_custom_note’] = [
‘title’ => ‘Custom Note’,
‘priority’ => 5,
‘callback’ => function () {
echo ‘
Injected from a custom filter.
‘;
},
‘content’ => ‘
Injected from a custom filter.
‘,
];
return $tabs;

}, 10, 2);
`
The stored product meta key is _pat_product_tabs.
Notes

If WooCommerce is inactive, the plugin degrades gracefully and shows an admin notice.
Standard WooCommerce tabs remain available when no custom tabs are configured.
Content uses a WYSIWYG editor, so HTML and shortcode-based layouts are supported.
Video content can be provided as an embed URL, shortcode, or iframe embed.
This package is prepared for the WordPress.org free plugin directory.

延伸相關外掛

文章
Filter
Mastodon