Product Tabs for WooCommerce 2.1.16 has 10 actions and 28 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Product Tabs for WooCommerce fires an action
add_action( 'barn2_after_plugin_settings', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Product Tabs for WooCommerce is about to use
add_filter( 'barn2_edd_licensing_api_endpoint', function( $endpoint, $object, $params ) {
// Change $endpoint here.
return $endpoint;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filter to determine if the custom fields scripts should be loaded. */ apply_filters( "barn2_wc_settings_custom_fields_load_scripts_{$this->plugin->get_slug()}", \true, $this->plugin ); -
/** * Filter the steps of the wizard. */ apply_filters( "{$this->get_slug()}_wizard_steps", $steps ); -
/** * Fires after the plugin is updated. */ do_action( "{$this->plugin->get_slug()}_updated", $db_version, $code_version, $this->plugin ); -
/** * Filter the EDD Software Licensing API endpoint. */ apply_filters( 'barn2_edd_licensing_api_endpoint', $endpoint, $this, $params ); -
/** * Filter whether to render the Help Scout Beacon for this plugin. */ apply_filters( 'barn2_helpscout_beacon_should_render', \true, $this->plugin_slug ); -
/** * Fires after the activation process has completed. */ do_action( "barn2_license_after_activate_{$this->item_id}", $license_key, $url_to_activate, $license_data, $result ); -
/** * Fires after the deactivation process has completed. */ do_action( "barn2_license_after_deactivate_{$this->item_id}", $license_key, $url_to_deactivate, $license_data, $result ); -
/** * Fires after the license has been overridden. */ do_action( "barn2_license_after_override_{$this->item_id}", $license_key, $url_to_activate, $license_data, \true ); -
/** * Fires after the refresh process has completed. */ do_action( "barn2_license_after_refresh_{$this->item_id}", $license_key, $url_to_refresh, $license_data, $result ); -
/** * Filters the list of help links used at the top of the plugin settings page. */ apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin ); -
barn2_sale_notice_campaigns
filter/** * Filters the sale campaigns shown by the Barn2 sale notice. */ apply_filters( 'barn2_sale_notice_campaigns', $campaigns ); -
/** * Allow filtering the allowed HTML tags array. */ apply_filters( 'wptrt_admin_notices_allowed_html', $this->allowed_html ); -
barn2_upsell_endpoint_url
filterapply_filters( 'barn2_upsell_endpoint_url', \untrailingslashit(static::get_barn2_api_url() . '/wp-json/upsell/v1/get/') ); -
barn2_api_url
filterapply_filters( 'barn2_api_url', $url, $relative_path ); -
do_action( "barn2_license_activated_{$this->item_id}", $license_key, $url_to_activate ); -
apply_filters( 'barn2_plugin_allow_automatic_update', \true, $this->plugin ); -
barn2_website_url
filterapply_filters( 'barn2_website_url', $url, $relative_path ); -
barn2_after_plugin_settings
actiondo_action( 'barn2_after_plugin_settings', $this->plugin->get_id() ); -
barn2_before_plugin_settings
actiondo_action( 'barn2_before_plugin_settings', $this->plugin->get_id() ); -
apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ); -
barn2_edd_store_url
filterapply_filters( 'barn2_edd_store_url', $url, $relative_path ); -
barn2_kb_url
filterapply_filters( 'barn2_kb_url', $url ); -
do_action( "barn2_license_deactivated_{$this->item_id}", $license_key, $url_to_deactivate ); -
apply_filters( 'barn2_license_expired_overlay_markup', $markup, $plugin ); -
apply_filters( 'barn2_license_expired_overlay_template', $default_template, $plugin ); -
apply_filters( "barn2_license_guard_config_{$plugin->get_id()}", $config, $plugin ); -
apply_filters( "barn2_license_overlay_screens_{$this->plugin->get_id()}", $this->screens, $this->plugin ); -
do_action( "barn2_license_refreshed_{$this->item_id}", $license_key, $url_to_refresh ); -
apply_filters( 'barn2_plugin_disable_license_key_check', \false, $this->license ); -
apply_filters( 'barn2_plugin_hide_license_notices', \false, $this->plugin ); -
apply_filters( "barn2_plugin_is_beta_testing_{$this->plugin->get_slug()}", \false ); -
apply_filters( 'barn2_plugin_license_key_setting', $setting, $this ); -
barn2_plugins_title_links
filterapply_filters_deprecated( 'barn2_plugins_title_links', [$links, $plugin], '1.1', 'barn2_plugin_settings_help_links' ); -
the_content
filterapply_filters( 'the_content', $content ); -
wpt_filter_product_tabs
filterapply_filters( 'wpt_filter_product_tabs', $wpt_tabs ); -
wpt_filter_tab_content
filterapply_filters( 'wpt_filter_tab_content', $content ); -
wpt_use_the_content_filter
filterapply_filters( 'wpt_use_the_content_filter', true ); -
wt_allowed_kses_tags
filterapply_filters( 'wt_allowed_kses_tags', $allowed_tags );
Generated from Product Tabs for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: