woocommerce_partial_download_tracking_window
woocommerce_partial_download_tracking_window
Hook Type: filter
Displaying hooks found in version: woocommerce.9.3.1apply_filters('woocommerce_partial_download_tracking_window') is found 1 times:
- /includes/class-wc-download-handler.php line 748
*
* @param int $window_in_seconds Non-negative number of seconds. Defaults to 1800 (30 minutes).
* @param int $download_permission_id References the download permission being tracked.
*/
$window = absint( apply_filters( ‘woocommerce_partial_download_tracking_window’, 30 * MINUTE_IN_SECONDS, $download->get_id() ) );// If we do not have Action Scheduler 3.6.0+ (this would be an unexpected scenario) then we cannot
// track partial downloads, because we require support for unique actions.
if ( version_compare( ActionScheduler_Versions::instance()->latest_version(), ‘3.6.0’, ‘<' ) ) { throw new Exception( 'Support for unique scheduled actions is not currently available.' ); } [/php]