WP_CLI\Iterators
Table::build_fields()
Method of the class: Table{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = Table::build_fields( $fields );
- $fields (required)
- -
Table::build_fields() Table::build fields code WP-CLI 2.8.0-alpha
private static function build_fields( $fields ) { if ( '*' === $fields ) { return $fields; } return implode( ', ', array_map( function ( $v ) { return "`$v`"; }, $fields ) ); }