[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/build/scripts/core-fields/wp_template/ -> index.php (source)

   1  <?php
   2  /**
   3   * The `wp_template` collection: the fields templates have instead of the
   4   * defaults.
   5   *
   6   * Templates support authors, yet their author is the theme, plugin, site,
   7   * or user that provides them rather than their post author. So they opt out
   8   * of the default author field, see wp_register_core_field_collections()
   9   * in `src/index.php`, and get the author field of this collection instead,
  10   * with its script module. Likewise for the title, labeled after the
  11   * template.
  12   *
  13   * @package WordPress
  14   */
  15  
  16  return array(
  17      'origin' => 'core',
  18      'kind'   => 'postType',
  19      'name'   => 'wp_template',
  20      'module' => '@wordpress/core-fields/wp_template',
  21  );


Generated : Thu Oct 22 08:20:34 2026 Cross-referenced by PHPXref