WC_Marketplace_Updater::retry()public staticWC 1.0

Used when an error has occurred when fetching suggestions. Re-schedules the job earlier than the main weekly one.

Метод класса: WC_Marketplace_Updater{}

Хуков нет.

Возвращает

null. Ничего.

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

$result = WC_Marketplace_Updater::retry();

Код WC_Marketplace_Updater::retry() WC 7.3.0

public static function retry() {
	WC()->queue()->cancel_all( 'woocommerce_update_marketplace_suggestions' );
	WC()->queue()->schedule_single( time() + DAY_IN_SECONDS, 'woocommerce_update_marketplace_suggestions' );
}