Skip to content

Commit

Permalink
Lesson update from review
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbossenger committed Dec 26, 2024
1 parent 4f2685c commit d29c896
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Now, add a custom field to the book post type for the ISBN field.

This code uses the `register_meta()` function to register a custom field for the book post type.

The `show_in_rest` parameter is set to `true` to make the custom field available in the REST API.
The `show_in_rest` parameter is set to `true` to make the custom field available in the REST API. This makes the custom field available in the Block Editor, and can therefore be bound to a block.

You could also use the `register_post_meta()` function, which is a wrapper for `register_meta()` but with a slightly simpler set of parameters.

Expand Down

0 comments on commit d29c896

Please sign in to comment.