WordPress filter hook

woocommerce_coupon_data_tabs

Defined by WooCommerce and fired by 4 plugins in total, running on 7M+ sites between them.

How to use woocommerce_coupon_data_tabs

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_coupon_data_tabs', function( $core ) {
	// Change $core here.
	return $core;
}, 10, 1 );

Argument names come from BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire woocommerce_coupon_data_tabs

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_coupon_data_tabs', array( 'general' => array( 'label' => __( 'General', 'woocommerce' ), 'target' => 'general_coupon_data', 'class' => 'general_coupon_data', ), 'usage_restriction' => array( 'label' => __( 'Usage restriction', 'woocommerce' ), 'target' => 'usage_restriction_coupon_data', 'class' => '', ), 'usage_limit' => array( 'label' => __( 'Usage limits', 'woocommerce' ), 'target' => 'usage_limit_coupon_data'... ) includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:44
  2. BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor icon BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor1,000+ installs apply_filters( 'woocommerce_coupon_data_tabs', $core ) front-end/coupons/brikpanel-coupons.php:104
  3. BW Coupon icon BW Coupon10+ installs apply_filters( 'woocommerce_coupon_data_tabs', array( 'general' => array( 'label' => __( 'General', 'woocommerce' ), 'target' => 'general_coupon_data', 'class' => 'general_coupon_data', ), 'usage_restriction' => array( 'label' => __( 'Usage restriction', 'woocommerce' ), 'target' => 'usage_restriction_coupon_data', 'class' => '', ), 'usage_limit' => array( 'label' => __( 'Usage limits', 'woocommerce' ), 'target' => 'usage_limit_coupon_data'... ) includes/class-bwc-data.php:99
  4. Invoice management for Woocommerce icon Invoice management for WoocommerceFewer than 10 installs apply_filters( 'woocommerce_coupon_data_tabs', array( 'general' => array( 'label' => __( 'General', 'woocommerce' ), 'target' => 'general_coupon_data', 'class' => 'general_coupon_data', ), 'usage_restriction' => array( 'label' => __( 'Usage restriction', 'woocommerce' ), 'target' => 'usage_restriction_coupon_data', 'class' => '', ), 'usage_limit' => array( 'label' => __( 'Usage limits', 'woocommerce' ), 'target' => 'usage_limit_coupon_data'... ) admin/meta-boxes/class-wc-meta-box-coupon-data.php:44

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.