Skip to content

Commit

Permalink
Add test post meta
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Nov 28, 2024
1 parent 33569f3 commit a4f1efc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,19 @@ function gutenberg_menu() {
);
}
add_action( 'admin_menu', 'gutenberg_menu', 9 );


function gutenberg_test_block_bindings_post_meta() {
register_meta(
'post',
'text_custom_field',
array(
'default' => 'Value of the text custom field',
'show_in_rest' => true,
'single' => true,
'type' => 'string',
)
);
}

add_action( 'init', 'gutenberg_test_block_bindings_post_meta' );

0 comments on commit a4f1efc

Please sign in to comment.