Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: themes_api

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
477       * be passed. If `$action` is 'hot_tags', an array should be passed.
478       *
479       * @since 2.8.0
480       *
481       * @param false|object|array $override Whether to override the WordPress.org Themes API. Default false.
482       * @param string             $action   Requested action. Likely values are 'theme_information',
483       *                                    'feature_list', or 'query_themes'.
484       * @param object             $args     Arguments used to query for installer pages from the Themes API.
485       */
486      $res = apply_filters( 'themes_api', false, $action, $args );
487
488      if ( ! $res ) {
489           $url = 'http://api.wordpress.org/themes/info/1.2/';
490           $url = add_query_arg(
491                array(
492                     'action'  => $action,
493                     'request' => $args,
494                ),
495                $url