WordPress.org

Making WordPress.org

Opened 4 years ago

Closed 4 years ago

Last modified 4 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:
Cc:

Change History (2)

#1 @ocean90
4 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 4 years ago by ocean90 (previous) (diff)

#2 @danielbachhuber
4 years ago

Ah, thanks for clarifying. I missed that.

Note: See TracTickets for help on using tickets.