Action_Scheduler\WP_CLI
Migration_Command::get_migration_config
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() Migration Command::get migration config WC 10.9.4
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;
}