[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> navigation-area.php (source)

   1  <?php
   2  /**
   3   * Server-side rendering of the `core/navigation-area` block.
   4   *
   5   * @deprecated 5.9.0 See https://github.com/WordPress/gutenberg/issues/36524
   6   * @package WordPress
   7   */
   8  
   9  /**
  10   * Registers the `core/navigation-area` block on the server.
  11   */
  12  function register_block_core_navigation_area() {
  13      register_block_type_from_metadata(
  14          __DIR__ . '/navigation-area',
  15          array(
  16              'provides_context' => array(
  17                  'navigationArea' => 'area',
  18              ),
  19          )
  20      );
  21  }
  22  add_action( 'init', 'register_block_core_navigation_area' );


Generated : Mon Nov 29 08:20:03 2021 Cross-referenced by PHPXref