Action_Scheduler\WP_CLI

Migration_Command::get_migration_configprivateWC 1.0

Build the config object used to create the Runner

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

Хуков нет.

Возвращает

ActionScheduler\Migration\Config.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_migration_config( $args );
$args(массив) (обязательный)
Optional arguments.

Код Migration_Command::get_migration_config() WC 9.9.5

private function get_migration_config( $args ) {
	$args = wp_parse_args(
		$args,
		array(
			'dry-run' => false,
		)
	);

	$config = Controller::instance()->get_migration_config_object();
	$config->set_dry_run( ! empty( $args['dry-run'] ) );

	return $config;
}