WC_Admin_Marketplace_Promotions::clear_deprecated_action()public staticWC 1.0

We can't clear deprecated action from AS when it's running, so we schedule a new single action to clear the deprecated woocommerce_marketplace_fetch_promotions action.

Method of the class: WC_Admin_Marketplace_Promotions{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Marketplace_Promotions::clear_deprecated_action();

WC_Admin_Marketplace_Promotions::clear_deprecated_action() code WC 9.7.1

public static function clear_deprecated_action() {
	if ( function_exists( 'as_schedule_single_action' ) ) {
		as_schedule_single_action( time(), 'woocommerce_marketplace_fetch_promotions_clear' );
	}
}