跳到内容

PAT Tab Studio for WooCommerce

v1.2.1

Laith Sinawi · 2026年7月5日 上架

Per-product WooCommerce tabs with WYSIWYG content, ordering, and enable controls.

正在使用
10 以下
评分
暂无
累计下载
285
最近更新
2026年7月5日
需要 WordPress 6.0+已测试到 7.0.9PHP 7.4+

贡献者

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

  1. Open a WooCommerce product for editing.
  2. Click Add Tab for each tab you want to create.
  3. Enable the row.
  4. Enter the tab label.
  5. Enter rich WYSIWYG content, shortcodes, or embed HTML.
  6. Drag rows to sort them, or set the order number manually.
  7. 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums