Automattic\WooCommerce\Internal\Admin\Schedulers

OrdersScheduler::handle_scheduled_import_option_addedpublic staticWC 1.0

Handle addition of the scheduled import option.

Метод класса: OrdersScheduler{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = OrdersScheduler::handle_scheduled_import_option_added( $option_name, $value );
$option_name(строка) (обязательный)
The name of the option that was added.
$value(строка) (обязательный)
The value of the option that was added.

Код OrdersScheduler::handle_scheduled_import_option_added() WC 10.5.2

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 );
}