ActionScheduler_WPCLI_Command::process_csv_arguments_to_arrays │ protected │ WC 1.0

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() 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 );
		}
	}
}