[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The description of a template, editable for the custom templates users
   4   * create. Its JavaScript parts (`getValue`, `render`, and `isVisible`) are in
   5   * `field.tsx`, next to this file.
   6   *
   7   * @package WordPress
   8   */
   9  
  10  return array(
  11      'type'               => 'text',
  12      'label'              => __( 'Description' ),
  13      'placeholder'        => __( 'Add a description' ),
  14      'Edit'               => array(
  15          'control' => 'textarea',
  16          'rows'    => 4,
  17      ),
  18      'enableSorting'      => false,
  19      'filterBy'           => false,
  20      'enableGlobalSearch' => true,
  21  );


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