query.php 304 B

12345678910111213141516
  1. <?php
  2. /**
  3. * Server-side rendering of the `core/query` block.
  4. *
  5. * @package WordPress
  6. */
  7. /**
  8. * Registers the `core/query` block on the server.
  9. */
  10. function register_block_core_query() {
  11. register_block_type_from_metadata(
  12. __DIR__ . '/query'
  13. );
  14. }
  15. add_action( 'init', 'register_block_core_query' );