1. Home
  2. Knowledge Base
  3. WooCommerce Product Tabs
  4. Developer Documentation

Actions and Filters

There are a number of filters provided in WooCommerce Product Tabs which allow you to customize the behavior of the plugin.

Please note that these code snippets are aimed at developers. If you feel comfortable using them, our article on how to use code snippets can serve as a helpful guide. If you don't know how to use this code then you can use our plugin customization service.

Filters

wta_show_tab_on_product

This filters overwrites other conditions for the tabs to either show or hide in the product tab page. An example of how to use this:

add_filter( 'wta_show_tab_on_product', function( $show, $tab_id, $tab_slug, $product_id ) {
// Check some conditions
// Change the $show
return $show;
} );

If searching the knowledge base hasn't answered your question, please contact support.