Product Tabs for WooCommerce icon
Content & Editing

Product Tabs for WooCommerce hooks reference

  • By Barn2 Plugins
  • v2.1.16
  • Updated

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.

functions.phpyour child theme
// 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

  • dependencies/barn2/barn2-lib/src/WooCommerce/Admin/Custom_Settings_Fields.php line 573 · used in 2 places
    /**
     * 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 );
  • dependencies/barn2/setup-wizard/src/Setup_Wizard.php line 320
    /**
     * Filter the steps of the wizard.
     */
    apply_filters( "{$this->get_slug()}_wizard_steps", $steps );
  • dependencies/barn2/barn2-lib/src/Service/Updater.php line 274
    /**
     * Fires after the plugin is updated.
     */
    do_action( "{$this->plugin->get_slug()}_updated", $db_version, $code_version, $this->plugin );
  • dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php line 142
    /**
     * Filter the EDD Software Licensing API endpoint.
     */
    apply_filters( 'barn2_edd_licensing_api_endpoint', $endpoint, $this, $params );
  • dependencies/barn2/barn2-lib/src/Admin/Help_Scout_Beacon.php line 131
    /**
     * Filter whether to render the Help Scout Beacon for this plugin.
     */
    apply_filters( 'barn2_helpscout_beacon_should_render', \true, $this->plugin_slug );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php line 176
    /**
     * Fires after the activation process has completed.
     */
    do_action( "barn2_license_after_activate_{$this->item_id}", $license_key, $url_to_activate, $license_data, $result );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php line 235
    /**
     * Fires after the deactivation process has completed.
     */
    do_action( "barn2_license_after_deactivate_{$this->item_id}", $license_key, $url_to_deactivate, $license_data, $result );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php line 324
    /**
     * Fires after the license has been overridden.
     */
    do_action( "barn2_license_after_override_{$this->item_id}", $license_key, $url_to_activate, $license_data, \true );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php line 300
    /**
     * Fires after the refresh process has completed.
     */
    do_action( "barn2_license_after_refresh_{$this->item_id}", $license_key, $url_to_refresh, $license_data, $result );
  • dependencies/barn2/barn2-lib/src/Admin/Sale_Notice.php line 131
    /**
     * Filters the sale campaigns shown by the Barn2 sale notice.
     */
    apply_filters( 'barn2_sale_notice_campaigns', $campaigns );
  • dependencies/wptrt/admin-notices/src/Notice.php line 127
    /**
     * Allow filtering the allowed HTML tags array.
     */
    apply_filters( 'wptrt_admin_notices_allowed_html', $this->allowed_html );
  • dependencies/barn2/setup-wizard/src/Util.php line 75 · used in 3 places
    apply_filters( 'barn2_upsell_endpoint_url', \untrailingslashit(static::get_barn2_api_url() . '/wp-json/upsell/v1/get/') );
  • barn2_api_url

    filter
    dependencies/barn2/barn2-lib/src/Util.php line 49 · used in 2 places
    apply_filters( 'barn2_api_url', $url, $relative_path );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php line 153 · used in 2 places
    do_action( "barn2_license_activated_{$this->item_id}", $license_key, $url_to_activate );
  • dependencies/barn2/barn2-lib/src/Plugin/Admin/Plugin_Updater.php line 195 · used in 2 places
    apply_filters( 'barn2_plugin_allow_automatic_update', \true, $this->plugin );
  • dependencies/barn2/barn2-lib/src/Util.php line 43 · used in 2 places
    apply_filters( 'barn2_website_url', $url, $relative_path );
  • src/Admin/Settings_Page.php line 105
    do_action( 'barn2_after_plugin_settings', $this->plugin->get_id() );
  • src/Admin/Settings_Page.php line 168
    do_action( 'barn2_before_plugin_settings', $this->plugin->get_id() );
  • dependencies/barn2/barn2-lib/src/Plugin/License/EDD_Licensing.php line 144
    apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] );
  • dependencies/barn2/barn2-lib/src/Util.php line 73
    apply_filters( 'barn2_edd_store_url', $url, $relative_path );
  • barn2_kb_url

    filter
    dependencies/barn2/barn2-lib/src/Plugin/Simple_Plugin.php line 291
    apply_filters( 'barn2_kb_url', $url );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php line 220
    do_action( "barn2_license_deactivated_{$this->item_id}", $license_key, $url_to_deactivate );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Expired_Overlay.php line 206
    apply_filters( 'barn2_license_expired_overlay_markup', $markup, $plugin );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Expired_Overlay.php line 198
    apply_filters( 'barn2_license_expired_overlay_template', $default_template, $plugin );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Expired_Guard.php line 52
    apply_filters( "barn2_license_guard_config_{$plugin->get_id()}", $config, $plugin );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Expired_Overlay.php line 112
    apply_filters( "barn2_license_overlay_screens_{$this->plugin->get_id()}", $this->screens, $this->plugin );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php line 281
    do_action( "barn2_license_refreshed_{$this->item_id}", $license_key, $url_to_refresh );
  • dependencies/barn2/barn2-lib/src/Plugin/License/License_Checker.php line 32
    apply_filters( 'barn2_plugin_disable_license_key_check', \false, $this->license );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Notices.php line 43
    apply_filters( 'barn2_plugin_hide_license_notices', \false, $this->plugin );
  • dependencies/barn2/barn2-lib/src/Plugin/Admin/Plugin_Updater.php line 259
    apply_filters( "barn2_plugin_is_beta_testing_{$this->plugin->get_slug()}", \false );
  • dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Key_Setting.php line 209
    apply_filters( 'barn2_plugin_license_key_setting', $setting, $this );
  • the_content

    filter
    src/Product_Tabs.php line 182
    apply_filters( 'the_content', $content );
  • src/Product_Tabs.php line 66
    apply_filters( 'wpt_filter_product_tabs', $wpt_tabs );
  • src/Product_Tabs.php line 184
    apply_filters( 'wpt_filter_tab_content', $content );
  • src/Product_Tabs.php line 179
    apply_filters( 'wpt_use_the_content_filter', true );
  • src/Admin/Product_Editor_Tabs.php line 190
    apply_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: