[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The author of the media, a copy of the `author` field of
   4   * `@wordpress/media-fields`: read-only, unlike the default author field of
   5   * the post types supporting authors. Its JavaScript parts (`getElements` and
   6   * `render`) are in `field.tsx`, next to this file.
   7   *
   8   * @package WordPress
   9   */
  10  
  11  return array(
  12      'type'     => 'integer',
  13      'label'    => __( 'Author' ),
  14      'filterBy' => array(
  15          'operators' => array( 'isAny', 'isNone' ),
  16      ),
  17      'readOnly' => true,
  18  );


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