Current File : /home/resuelf/www/wp-content/plugins/gutenberg/lib/compat/wordpress-6.4/rest-api.php |
<?php
/**
* PHP and WordPress configuration compatibility functions for the Gutenberg
* editor plugin changes related to REST API.
*
* @package gutenberg
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'Silence is golden.' );
}
/**
* Registers the block patterns REST API routes.
*/
function gutenberg_register_rest_block_patterns_routes() {
$block_patterns = new Gutenberg_REST_Block_Patterns_Controller();
$block_patterns->register_routes();
}
add_action( 'rest_api_init', 'gutenberg_register_rest_block_patterns_routes' );