ActionScheduler_WPCLI_Command::process_csv_arguments_to_arrays()protectedWC 1.0

Transforms arguments with '__' from CSV into expected arrays.

Method of the class: ActionScheduler_WPCLI_Command{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->process_csv_arguments_to_arrays();

Notes

  • See: \WP_CLI\CommandWithDBObject::process_csv_arguments_to_arrays()

ActionScheduler_WPCLI_Command::process_csv_arguments_to_arrays() code WC 9.8.1

protected function process_csv_arguments_to_arrays() {
	foreach ( $this->assoc_args as $k => $v ) {
		if ( false !== strpos( $k, '__' ) ) {
			$this->assoc_args[ $k ] = explode( ',', $v );
		}
	}
}