WordPress/wp-includes/blocks/navigation-area.php

22 lines
438 B
PHP
Raw Normal View History

<?php
/**
* Server-side rendering of the `core/navigation-area` block.
*
* @package gutenberg
*/
/**
* Registers the `core/navigation-area` block on the server.
*/
function register_block_core_navigation_area() {
register_block_type_from_metadata(
__DIR__ . '/navigation-area',
array(
'provides_context' => array(
'navigationArea' => 'area',
),
)
);
}
add_action( 'init', 'register_block_core_navigation_area' );