[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The description of the media, a copy of the `description` field of
   4   * `@wordpress/media-fields`. Its JavaScript parts (`getValue` and `render`)
   5   * are in `field.tsx`, next to this file.
   6   *
   7   * @package WordPress
   8   */
   9  
  10  return array(
  11      'type'          => 'text',
  12      'label'         => __( 'Description' ),
  13      'Edit'          => array(
  14          'control' => 'textarea',
  15          'rows'    => 5,
  16      ),
  17      'enableSorting' => false,
  18      'filterBy'      => false,
  19  );


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