How to import and export product tabs
The WooCommerce Product Tabs plugin stores the tabs as a custom post type called woo_product_tab
. This means that the data about each tab is stored in the wp_posts
database table, like all other post types. You can read more about this in the official WordPress documentation about post types.
This makes it straightforward to import and export your product tabs, because you can use any method which works with WordPress itself. This includes:
- The built-in WordPress import/export tool, which is available under the 'Tools' menu in the WordPress Dashboard.
- Any WordPress import/export plugin such as WP All Import.
The default WordPress exporter takes care of the product, category and tag conditions for the tabs. However, you need to have the same products, categories and tags with the same IDs in the destination website in order for the conditions to get imported correctly.
Individual product tabs
The individual tab contents for products are saved in the product metadata. If you want to also import that content, you need to export the products as well.
How to export tabs using WP All Export
The following instructions provide the most reliable method to export product tabs using the WP All Export plugin.
- In WP All Export, select 'Product Tabs' from the post types menu and then click the "Customize export file" button.
- On the next page, expand the "Custom fields" and drag the "All" option to the fields area. After this, all the custom fields should show up in the left section and you will have the conditions and the icons of the tabs in the export file.
- Click on "Next" and it will be ready for export.
If your products have custom tab content and icons, then you should export the products as well:
- On the first page, select "WooCommerce Products" and click on the Customize export file.
- Just like in the previous section, expand "Custom Fields" and drag the "All" option to the fields area.
- Now your products are ready for export. Remember that if you want other fields like media to be included in the export file, then you can do that too but the custom fields should be there in order to export the tab content.