*
* <plugin>
* : The plugin to get.
- *
+ *
* [--field=<field>]
* : Instead of returning the whole plugin, returns the value of a single field.
*
unset( $fields['filter'], $fields['post_content'], $fields['format_content'] );
else if ( 'json' == $assoc_args['format'] )
unset( $fields['filter'] );
-
+
\WP_CLI\Utils\show_multiple_fields( $fields, $assoc_args['format'] );
}
}
*
* [--<field>=<value>]
* : Filter by one or more fields. For accepted fields, see get_terms().
- *
+ *
* [--field=<field>]
* : Prints the value of a single field for each term.
*
*
* <taxonomy>
* : Taxonomy of the term to get
- *
+ *
* [--field=<field>]
* : Instead of returning the whole term, returns the value of a single field.
*
} else {
$term = get_object_vars( $term );
-
+
\WP_CLI\Utils\show_multiple_fields( $term, $assoc_args['format'] );
}
*
* <theme>
* : The theme to get.
- *
+ *
* [--field=<field>]
* : Instead of returning the whole theme, returns the value of a single field.
*
}
/**
- * Show a single field from a list of items
- *
+ * Show a single field from a list of items.
+ *
* @param array Array of objects to show fields from
* @param string The field to show
* @param string The format to show the field in
}
/**
- * Show multiple fields of an object
- *
+ * Show multiple fields of an object.
+ *
* @param object|array Data to display
* @param string Format to display the data in
*/