woocommerce_tracker_last_send_interval

woocommerce_tracker_last_send_interval

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_tracker_last_send_interval') is found 1 times:

  • /includes/class-wc-tracker.php line 63
    		 */
    		if ( ! apply_filters( 'woocommerce_tracker_send_override', $override ) ) {
    			// Send a maximum of once per week by default.
    			$last_send = self::get_last_send_time();
    			if ( $last_send && $last_send > apply_filters( 'woocommerce_tracker_last_send_interval', strtotime( '-1 week' ) ) ) { // phpcs:ignore
    				return;
    			}
    		} else {
    			// Make sure there is at least a 1 hour delay between override sends, we don't want duplicate calls due to double clicking links.
    			$last_send = self::get_last_send_time();
    			if ( $last_send && $last_send > strtotime( '-1 hours' ) ) {