Automattic\WooCommerce\Internal\ProductFeed\Feed
ProductWalker::add_time_limit
Set the time limit to extend the execution time limit per batch.
Method of the class: ProductWalker{}
No Hooks.
Returns
self.
Usage
$ProductWalker = new ProductWalker(); $ProductWalker->add_time_limit( $time_limit ): self;
- $time_limit(int) (required)
- Time limit in seconds.
Changelog
| Since 10.5.0 | Introduced. |
ProductWalker::add_time_limit() ProductWalker::add time limit code WC 10.8.1
public function add_time_limit( int $time_limit ): self {
if ( $time_limit < 0 ) {
$time_limit = 0;
}
$this->time_limit = $time_limit;
return $this;
}