woocommerce_product_importer_default_time_limit хук-фильтрWC 1.0

Time exceeded.

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

Использование

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
-

Где вызывается хук

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

Где используется хук в WooCommerce

Использование не найдено.