Skip to content

Commit

Permalink
Merge pull request #37 from spacedmonkey/block_data
Browse files Browse the repository at this point in the history
Change key name
spacedmonkey authored Apr 20, 2023
2 parents fe98803 + e7af194 commit 38ac80e
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/posts.php
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ function wp_rest_blocks_init() {

register_rest_field(
$types,
'blocks',
'block_data',
[
'get_callback' => __NAMESPACE__ . '\\blocks_get_callback',
'update_callback' => null,
2 changes: 1 addition & 1 deletion src/widgets.php
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ function wp_rest_blocks_init() {

register_rest_field(
'widget',
'blocks',
'block_data',
[
'get_callback' => __NAMESPACE__ . '\\blocks_widget_get_callback',
'update_callback' => null,

0 comments on commit 38ac80e

Please sign in to comment.