WC_Marketplace_Updater::retry()

Used when an error has occured when fetching suggestions.


Description Description

Re-schedules the job earlier than the main weekly one.


Source Source

File: includes/admin/marketplace-suggestions/class-wc-marketplace-updater.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.