woocommerce_product_importer_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( 'woocommerce_product_importer_default_time_limit', 'wp_kama_woocommerce_product_importer_default_time_limit_filter' ); /** * Function for `woocommerce_product_importer_default_time_limit` filter-hook. * * @param $20 * * @return */ function wp_kama_woocommerce_product_importer_default_time_limit_filter( $20 ){ // filter... return $20; }
- $20
- -
Where the hook is called
woocommerce_product_importer_default_time_limit
woocommerce/includes/import/abstract-wc-product-importer.php 762
$finish = $this->start_time + apply_filters( 'woocommerce_product_importer_default_time_limit', 20 ); // 20 seconds