(identifier)_default_time_limit
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
(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