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