Skip to content

Commit bc2a20d

Browse files
authored
fixed typo on "wehreas"
1 parent c6f7fc6 commit bc2a20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extending-the-rest-api/modifying-responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ There are two methods which can be used to add data to WordPress REST API respon
3434
Prior WordPress 4.9.8, meta fields set to `show_in_rest` using `register_meta` are registered for all objects of a given type. If one custom post type shows a meta field, all custom post types will show that meta field. As of WordPress 4.9.8 it's possible to use `register_meta` with the `object_subtype` argument that allows one to reduce the usage of the meta key to a particular post type.
3535
[/alert]
3636

37-
The disadvantage of `register_meta` is that it can only handle scalar values wehreas `register_rest_field` can handle other object types as well.
37+
The disadvantage of `register_meta` is that it can only handle scalar values whereas `register_rest_field` can handle other object types as well.
3838

3939

4040
## Adding Custom Fields to API Responses

0 commit comments

Comments
 (0)