Automattic\WooCommerce\Internal\CLI\Migrator\Core
ProductsController::restore_original_arguments
Restore the original arguments to the current parsed args.
Метод класса: ProductsController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->restore_original_arguments( $original_args ): void;
- $original_args(массив) (обязательный)
- The original arguments to restore.
Код ProductsController::restore_original_arguments() ProductsController::restore original arguments WC 10.5.2
private function restore_original_arguments( array $original_args ): void {
foreach ( $original_args as $key => $value ) {
if ( 'resume' !== $key ) {
$this->parsed_args[ $key ] = $value;
}
}
if ( isset( $original_args['fields'] ) ) {
$this->fields_to_process = $original_args['fields'];
}
}