Action_Scheduler\WP_CLI

Migration_Command::get_migration_config()privateWC 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 8.7.0

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

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

	return $config;
}