woocommerce_product_importer_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( '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

WC_Product_Importer::time_exceeded()
woocommerce_product_importer_default_time_limit
woocommerce/includes/import/abstract-wc-product-importer.php 758
$finish = $this->start_time + apply_filters( 'woocommerce_product_importer_default_time_limit', 20 ); // 20 seconds

Where the hook is used in WooCommerce

Usage not found.