Automattic\WooCommerce\Internal\Admin\Schedulers

OrdersScheduler::handle_scheduled_import_option_before_deletepublic staticWC 1.0

Handle deletion of the scheduled import option.

Method of the class: OrdersScheduler{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = OrdersScheduler::handle_scheduled_import_option_before_delete( $option_name );
$option_name(string) (required)
The name of the option that was deleted.

OrdersScheduler::handle_scheduled_import_option_before_delete() code WC 10.8.1

public static function handle_scheduled_import_option_before_delete( $option_name ) {
	if ( self::SCHEDULED_IMPORT_OPTION !== $option_name ) {
		return;
	}

	self::handle_scheduled_import_option_change(
		get_option( self::SCHEDULED_IMPORT_OPTION, self::SCHEDULED_IMPORT_OPTION_DEFAULT_VALUE ),
		self::SCHEDULED_IMPORT_OPTION_DEFAULT_VALUE,
	);
}