WordPress filter hook

ts_tracker_opt_out_data

Fired by 13 WordPress plugins, running on 144K+ sites between them.

How to use ts_tracker_opt_out_data

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( 'ts_tracker_opt_out_data', function( $params ) {
	// Change $params here.
	return $params;
}, 10, 1 );

Argument names come from Print Invoice & Delivery Notes for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

13 plugins that fire ts_tracker_opt_out_data

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

  1. Print Invoice & Delivery Notes for WooCommerce icon Print Invoice & Delivery Notes for WooCommerce30,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/component/plugin-tracking/class-tyche-plugin-tracking.php:204
  2. Payment Gateway Based Fees and Discounts for WooCommerce icon Payment Gateway Based Fees and Discounts for WooCommerce30,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/tyche/components/plugin-tracking/class-plugin-tracking.php:200
  3. Abandoned Cart Lite for WooCommerce icon Abandoned Cart Lite for WooCommerce20,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/component/plugin-tracking/class-tyche-plugin-tracking.php:205
  4. Custom Order Numbers for WooCommerce icon Custom Order Numbers for WooCommerce20,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php:202
  5. Custom Order Status for WooCommerce icon Custom Order Status for WooCommerce10,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php:200
  6. Order Delivery Date for WooCommerce icon Order Delivery Date for WooCommerce10,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/component/plugin-tracking/class-tyche-plugin-tracking.php:200
  7. Call for Price for WooCommerce icon Call for Price for WooCommerce7,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/tyche/components/plugin-tracking/class-plugin-tracking.php:200
  8. Arconix FAQ icon Arconix FAQ6,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/component/tracking-data/class-ts-tracker.php:83
  9. Product Input Fields for WooCommerce icon Product Input Fields for WooCommerce4,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php:200
  10. Arconix Shortcodes icon Arconix Shortcodes3,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/component/tracking-data/class-ts-tracker.php:83
  11. Currency per Product for WooCommerce icon Currency per Product for WooCommerce2,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php:197
  12. Product Prices by User Roles for WooCommerce icon Product Prices by User Roles for WooCommerce1,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/components/plugin-tracking/class-plugin-tracking.php:203
  13. Product Delivery Date for WooCommerce icon Product Delivery Date for WooCommerce1,000+ installs apply_filters( 'ts_tracker_opt_out_data', $params ) includes/component/plugin-tracking/class-tyche-plugin-tracking.php:202

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.