ActionScheduler_WPCLI_Command::process_csv_arguments_to_arrays
Transforms arguments with '__' from CSV into expected arrays.
Метод класса: ActionScheduler_WPCLI_Command{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->process_csv_arguments_to_arrays();
Заметки
| Смотрите: \WP_CLI\CommandWithDBObject::process_csv_arguments_to_arrays() |
Код ActionScheduler_WPCLI_Command::process_csv_arguments_to_arrays() ActionScheduler WPCLI Command::process csv arguments to arrays WC 11.2.2
protected function process_csv_arguments_to_arrays() {
foreach ( $this->assoc_args as $k => $v ) {
if ( false !== strpos( $k, '__' ) ) {
$this->assoc_args[ $k ] = explode( ',', $v );
}
}
}