woocommerce_product_feed_scheduled_timeout filter-hookWC 10.5.0

Allows the timeout for a feed to remain in scheduled state to be changed.

Usage

add_filter( 'woocommerce_product_feed_scheduled_timeout', 'wp_kama_woocommerce_product_feed_scheduled_timeout_filter' );

/**
 * Function for `woocommerce_product_feed_scheduled_timeout` filter-hook.
 * 
 * @param int $stuck_time The stuck time in seconds.
 *
 * @return int
 */
function wp_kama_woocommerce_product_feed_scheduled_timeout_filter( $stuck_time ){

	// filter...
	return $stuck_time;
}
$stuck_time(int)
The stuck time in seconds.

Changelog

Since 10.5.0 Introduced.

Where the hook is called

AsyncGenerator::validate_status()
woocommerce_product_feed_scheduled_timeout
woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/AsyncGenerator.php 369
$scheduled_timeout = apply_filters( 'woocommerce_product_feed_scheduled_timeout', 10 * MINUTE_IN_SECONDS );

Where the hook is used in WooCommerce

Usage not found.