author | ymh <ymh.work@gmail.com> |
Wed, 21 Sep 2022 18:19:35 +0200 | |
changeset 18 | be944660c56a |
child 21 | 48c4eec2b7e6 |
permissions | -rw-r--r-- |
18 | 1 |
<?php |
2 |
/** |
|
3 |
* Server-side rendering of the `core/query` block. |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
*/ |
|
7 |
||
8 |
/** |
|
9 |
* Registers the `core/query` block on the server. |
|
10 |
*/ |
|
11 |
function register_block_core_query() { |
|
12 |
register_block_type_from_metadata( |
|
13 |
__DIR__ . '/query' |
|
14 |
); |
|
15 |
} |
|
16 |
add_action( 'init', 'register_block_core_query' ); |