[ 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      'placeholder' => __( '(no author)' ),
  15      'filterBy'    => array(
  16          'operators' => array( 'isAny', 'isNone' ),
  17      ),
  18      'readOnly'    => true,
  19  );


Generated : Thu Nov 12 08:20:02 2026 Cross-referenced by PHPXref