(identifier)_default_time_limit filter-hookWC 1.0

Time exceeded.

Ensures the batch never exceeds a sensible time limit. A timeout limit of 30s is common on shared hosting.

Usage

add_filter( '(identifier)_default_time_limit', 'wp_kama_identifier_default_time_limit_filter' );

/**
 * Function for `(identifier)_default_time_limit` filter-hook.
 * 
 * @param  $20 
 *
 * @return 
 */
function wp_kama_identifier_default_time_limit_filter( $20 ){

	// filter...
	return $20;
}
$20
-

Where the hook is called

WP_Background_Process::time_exceeded()
(identifier)_default_time_limit
woocommerce/includes/libraries/wp-background-process.php 385
$finish = $this->start_time + apply_filters( $this->identifier . '_default_time_limit', 20 ); // 20 seconds

Where the hook is used in WooCommerce

Usage not found.