[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/build/scripts/core-actions/page/set-as-homepage/ -> action.php (source)

   1  <?php
   2  /**
   3   * The "Set as homepage…" action, for pages: it applies to the pages with the
   4   * `action-set-homepage` REST link, the published pages that are neither the
   5   * homepage nor the posts page. Its JavaScript parts (`isEligible` and
   6   * `RenderModal`) are in `action.tsx`, next to this file.
   7   *
   8   * @package WordPress
   9   */
  10  
  11  return array(
  12      'label'             => __( 'Set as homepage…' ),
  13      'modalHeader'       => __( 'Set as homepage' ),
  14      'modalFocusOnMount' => 'firstContentElement',
  15  );


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