Make WordPress Core

Changeset 25703


Ignore:
Timestamp:
10/06/2013 07:00:05 PM (10 years ago)
Author:
DrewAPicture
Message:

Inline documentation for a hooks in wp-includes/template.php.

Props jonlynch for the initial patch.
Fixes #25487.

File:
1 edited

Legend:

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

    r25386 r25703  
    2727        $templates = array("{$type}.php");
    2828
    29     return apply_filters( "{$type}_template", locate_template( $templates ) );
     29    $template = locate_template( $templates );
     30    /**
     31     * Filter the path of the queried template by type.
     32     *
     33     * The dynamic portion of the hook name, $type, refers to the filename
     34     * -- minus the extension -- of the file to load. This hook also applies
     35     * to various types of files loaded as part of the Template Hierarchy.
     36     *
     37     * @since 1.5.2
     38     *
     39     * @param string $template Path to the template. @see locate_template()
     40     */
     41    return apply_filters( "{$type}_template", $template );
    3042}
    3143
Note: See TracChangeset for help on using the changeset viewer.