Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:28:51 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Docs on docs. Further improve documentation of known return types, plus other docs fixes.

See #48303

File:
1 edited

Legend:

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

    r46232 r46662  
    113113
    114114/**
    115  * Get the Page Templates available in this theme
     115 * Gets the page templates available in this theme.
    116116 *
    117117 * @since 1.5.0
     
    120120 * @param WP_Post|null $post      Optional. The post being edited, provided for context.
    121121 * @param string       $post_type Optional. Post type to get the templates for. Default 'page'.
    122  * @return array Key is the template name, value is the filename of the template
     122 * @return string[] Array of template file names keyed by the template header name.
    123123 */
    124124function get_page_templates( $post = null, $post_type = 'page' ) {
Note: See TracChangeset for help on using the changeset viewer.