Action_Scheduler\WP_CLI
Migration_Command::get_migration_config()
Build the config object used to create the Runner
Method of the class: Migration_Command{}
No Hooks.
Return
ActionScheduler\Migration\Config
.
Usage
// private - for code of main (parent) class only $result = $this->get_migration_config( $args );
- $args(array) (required)
- Optional arguments.
Migration_Command::get_migration_config() Migration Command::get migration config code WC 9.4.2
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; }