[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The `attachment` collection: the fields of the media editor.
   4   *
   5   * Attachments support authors and comments, yet the media editor shows its
   6   * own set of fields, copies of those of `@wordpress/media-fields`, none of
   7   * which is a default one. So they opt out of every default field, see
   8   * wp_register_core_field_collections() in `src/index.php`, and get the
   9   * fields of this collection instead, with its script module.
  10   *
  11   * @package WordPress
  12   */
  13  
  14  return array(
  15      'origin' => 'core',
  16      'kind'   => 'postType',
  17      'name'   => 'attachment',
  18      'module' => '@wordpress/core-fields/attachment',
  19  );


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