| 开发者 | tsoudaz |
|---|---|
| 更新时间 | 2026年10月24日 01:48 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
#tab-shipping at the end of the product address opens the tab.wpml-config.xml file is included. The list of tabs is copied to every language; the titles and texts of the tabs are what you translate, tab by tab. Texts are stored by tab, not by position, so reordering tabs does not change them. Tested with WPML 5.2, String Translation and WooCommerce Multilingual 5.7.#tab-shipping) are the same in every language.[prodtabs] shortcode shows the tabs of a product where you want them: in a theme or a page builder that does not show the WooCommerce tabs, or on another page with [prodtabs product="123"].[prodtabs tab="shipping"] (the anchor of the tab, #tab-shipping), for a size guide in a page or shipping terms next to the price. title="no" leaves its heading out.[prodtabs shared="45"].wp prodtabs import-yikes and wp prodtabs list./wp-content/plugins/. WooCommerce must be active.Keep Custom Product Tabs installed, then open WooCommerce > Settings > Products > Tabs and click "Import from Custom Product Tabs (YIKES)" in the Tools section. Check the analysis and the preview, then start the import. On large shops, wp prodtabs import-yikes --dry-run shows the plan, and wp prodtabs import-yikes runs it.
No. ProdTabs only reads it. Once you have checked your products you can deactivate Custom Product Tabs. Do not delete that plugin before checking: deleting it erases its own data.
No. While both are active, a product shows the ProdTabs tabs once it is imported, and the YIKES tabs before. If something looks wrong, "Undo the import" in the import report (or wp prodtabs import-yikes --undo) gives the products back what they had before the import and moves the shared tabs it created to the trash; your products then show the YIKES tabs again.
Translate the product as usual. The titles and texts of its tabs appear in the translation editor; the list of tabs, their order and their visibility follow the original product. Shared tabs are translated in Products > Shared tabs, like posts.
Create the translation of the product: its tabs show the texts of the original, marked as not translated, until you type their translation in the Tabs panel. The list of tabs stays the same in every language. Shared tabs are translated in Products > Shared tabs.
ProdTabs adds its tabs through the standard WooCommerce tabs, so it works with themes that display them, classic or block themes. With the accordion layout of the Product Details block, the titles, visibility and order of the WooCommerce tabs apply as well. Themes that draw tabs of their own keep them: the accordion for phones only changes the tabs of WooCommerce.
Add the [prodtabs] shortcode, or the "Product tabs (ProdTabs)" block, where the tabs should go. On a product page, it shows the tabs of that product; elsewhere, give the product: [prodtabs product="123"].
Export the shared tabs from Tools > Export on the first site and import them on the other one with Tools > Import > WordPress. Then move the products, with the product CSV of WooCommerce (check "Export custom meta") or with the WordPress export. Their shared tabs are found again on the new site.
Yes. Each tab has an address, such as #tab-shipping, shown in the Tabs panel. Add it at the end of the product address.
Turn on "Format tab content with the full content filter of the theme and plugins" in WooCommerce > Settings > Products > Tabs.
The tabs of a product are stored in two product meta fields: _prodtabs_layout (the list of tabs) and _prodtabs_texts (the titles and texts). Shared tabs are posts of the type prodtabs_tab. No tab content is stored in the options that WordPress loads on every page.
Filters: prodtabs_product_entries, prodtabs_product_tabs, prodtabs_tab_heading, prodtabs_tab_heading_html, prodtabs_tab_raw_content, prodtabs_tab_content, prodtabs_untranslated_library_tab, prodtabs_settings_fields, prodtabs_shared_tab_scopes, prodtabs_shared_tab_applies. Actions: prodtabs_product_panel_after, prodtabs_purge_cache (product pages whose tabs changed, for a host cache). Shortcode: [prodtabs] (attributes product, tab, shared, title). Block: prodtabs/product-tabs.
wp prodtabs import-yikes refuses a --products value without a valid ID instead of importing the whole catalog.