Automattic\WooCommerce\Internal\Admin\Schedulers

OrdersScheduler::handle_scheduled_import_option_addedpublic staticWC 1.0

Handle addition of the scheduled import option.

Method of the class: OrdersScheduler{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = OrdersScheduler::handle_scheduled_import_option_added( $option_name, $value );
$option_name(string) (required)
The name of the option that was added.
$value(string) (required)
The value of the option that was added.

OrdersScheduler::handle_scheduled_import_option_added() code WC 10.8.1

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

	self::handle_scheduled_import_option_change( self::SCHEDULED_IMPORT_OPTION_DEFAULT_VALUE, $value );
}