[wp-trac] [WordPress Trac] #34035: Document $args parameter for plugins_api()

WordPress Trac noreply at wordpress.org
Fri Oct 2 04:47:16 UTC 2015


#34035: Document $args parameter for plugins_api()
--------------------------+---------------------------
 Reporter:  ocean90       |       Owner:  DrewAPicture
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  4.4
Component:  Plugins       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+---------------------------

Comment (by DrewAPicture):

 In [changeset:"34763"]:
 {{{
 #!CommitTicketReference repository="" revision="34763"
 Docs: Clarify the expected replacement element type if replacing the
 object or array in `plugins_api()` via the `plugins_api` hook.

 If the `$action` type is 'query_plugins' or 'plugin_information', the API
 will return an object, thus an object should be passed if replacing it.
 For 'hot_tags' and 'hot_categories', the same logic applies, but with
 arrays instead.

 See #34035.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34035#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list