#20001 closed feature request (worksforme)
Update plugins_api to return short_description when querying 'plugin_information'
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | WordPress.org site | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When querying plugins_api() with 'plugin_information', can the short_description be added to the results? It's currently exposed on the results from 'query_plugins'.
Change History (3)
- Resolution set to worksforme
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Try this: plugins_api( 'plugin_information', array( 'slug' => 'jetpack', 'fields' => array( 'short_description' => true ) ) );
Allowed fields and their global defaults:
For query_plugins, these defaults take precedence:
For plugin_information, additionally, 'short_description' => false.
To turn on/off any field that is/is not included by default, simply pass 'fields' => array( 'some_field' => true/false ).