[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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


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