WordPress filter hook

ts_tracker_last_send_interval

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

How to use ts_tracker_last_send_interval

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_last_send_interval', function( $strtotime ) {
	// Change $strtotime here.
	return $strtotime;
}, 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_last_send_interval

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_last_send_interval', strtotime( '-1 week' ) ) includes/component/plugin-tracking/class-tyche-plugin-tracking.php:177
  2. Payment Gateway Based Fees and Discounts for WooCommerce icon Payment Gateway Based Fees and Discounts for WooCommerce30,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/tyche/components/plugin-tracking/class-plugin-tracking.php:173
  3. Abandoned Cart Lite for WooCommerce icon Abandoned Cart Lite for WooCommerce20,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/component/plugin-tracking/class-tyche-plugin-tracking.php:177
  4. Custom Order Numbers for WooCommerce icon Custom Order Numbers for WooCommerce20,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php:175
  5. Custom Order Status for WooCommerce icon Custom Order Status for WooCommerce10,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php:173
  6. Order Delivery Date for WooCommerce icon Order Delivery Date for WooCommerce10,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/component/plugin-tracking/class-tyche-plugin-tracking.php:173
  7. Call for Price for WooCommerce icon Call for Price for WooCommerce7,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/tyche/components/plugin-tracking/class-plugin-tracking.php:173
  8. Arconix FAQ icon Arconix FAQ6,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/component/tracking-data/class-ts-tracker.php:58
  9. Product Input Fields for WooCommerce icon Product Input Fields for WooCommerce4,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php:173
  10. Arconix Shortcodes icon Arconix Shortcodes3,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/component/tracking-data/class-ts-tracker.php:58
  11. Currency per Product for WooCommerce icon Currency per Product for WooCommerce2,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/tyche/components/plugin-tracking/class-tyche-plugin-tracking.php:170
  12. Product Prices by User Roles for WooCommerce icon Product Prices by User Roles for WooCommerce1,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/components/plugin-tracking/class-plugin-tracking.php:178
  13. Product Delivery Date for WooCommerce icon Product Delivery Date for WooCommerce1,000+ installs apply_filters( 'ts_tracker_last_send_interval', strtotime( '-1 week' ) ) includes/component/plugin-tracking/class-tyche-plugin-tracking.php:175

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.