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.

Method of the class: WC_Marketplace_Updater{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Marketplace_Updater::retry();

WC_Marketplace_Updater::retry() code WC 9.0.1

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