Make WordPress Core

Changeset 34648


Ignore:
Timestamp:
09/27/2015 10:44:18 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust the themes_api() DocBlock description to clarify the "second" available hook, themes_api, and add new information for the "third" hook, themes_api_result.

See #34036.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r34640 r34648  
    308308 * an object is returned.
    309309 *
    310  * The second filter, {@see 'themes_api'}, is the result that would be returned.
     310 * The second filter, {@see 'themes_api'}, allows a plugin to override the WordPress.org
     311 * Theme API entirely. If `$action` is 'query_themes', 'theme_information', or 'hot_categories',
     312 * an object MUST be passed. If `$action` is 'hot_tags`, an array should be passed.
     313 *
     314 * Finally, the third filter, {@see 'themes_api_result'}, makes it possible to filter the
     315 * response object or array, depending on the `$action` type.
    311316 *
    312317 * Supported arguments per action:
Note: See TracChangeset for help on using the changeset viewer.