Making WordPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 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
5 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 5 years ago by ocean90 (previous) (diff)

#2 @danielbachhuber
5 years ago

Ah, thanks for clarifying. I missed that.

Note: See TracTickets for help on using tickets.