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.

{} It's a method of the class: WC_Marketplace_Updater{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Marketplace_Updater::retry();

Code of WC_Marketplace_Updater::retry() WC 6.7.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' );
}