| 开发者 | jrobie23 |
|---|---|
| 更新时间 | 2026年9月24日 22:09 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
mad-cow-product-tabs-for-woocommerce folder to /wp-content/plugins/, or install the plugin through the Plugins screen.The plugin uses the standard woocommerce_product_tabs filter, which the classic product template uses. Product pages built entirely from blocks may not render the tabs area at all, in which case there is nothing for the plugin to modify.
Yes. Tab content runs through the same filters as post content, so shortcodes and embeds work.
Check its visibility setting. A tab set to Product Specific appears only on products where you have enabled it in the product editor, and a tab set to None (Hidden) never appears on the front end.
Yes. Edit the product and use the MCW Product Tabs meta box to enable or disable any default or custom tab for that product only.
No. Tab content is defined once in the settings; per-product control covers whether a tab appears, not what it contains.
Yes, mcwmst_custom_tab_content receives the content and the tab ID.
add_filter( 'mcwmst_custom_tab_content', 'my_tab_cta', 10, 2 ); function my_tab_cta( $content, $tab_id ) { return $content . '<p><a href="/contact/">Questions? Contact us.</a></p>'; }
mcwmst_custom_tab_content filter is now implemented. It was described in the documentation but never present in the code; custom tab content now passes through it, receiving the rendered content and the tab ID.Requires Plugins: woocommerce header, so WordPress 6.5+ blocks activation until WooCommerce is active.