Making WordPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#1637 closed defect (invalid)

Plugins API query_plugins request doesn't respect 'fields' argument

Reported by: danielbachhuber Owned by:
Milestone: Priority: normal
Component: Plugin Directory Keywords:

Change History (2)

#1 @ocean90
6 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The API doesn't work like this.

The list of valid fields with their default values is listed at https://developer.wordpress.org/reference/functions/plugins_api/. name is not a valid field.
If you don't want to have a field in the response you have to make this explicit. Example: 'fields' => array( 'short_description' => false ).

Last edited 6 years ago by ocean90 (previous) (diff)

#2 @danielbachhuber
6 years ago

Ah, thanks for clarifying. I missed that.

Note: See TracTickets for help on using tickets.