Checkbox with “allow multiple” + “save in meta” error
-
When my field type is “Checkbox” and I have “allow multiple”, then when I set “save in meta” I get the following WP Notice:
<b>Notice</b>: Function register_meta was called <strong>incorrectly</strong>. When registering an "array" meta type to show in the REST API, you must specify the schema for each array item in "show_in_rest.schema.items". Please see <a href="[https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/">Debugging](https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/%22%3EDebugging) in WordPress</a> for more information. (This message was added in version 5.3.0.)Worse: my posts do not save the checkbox values (all are unchecked after save).
My work-around was to use a repeater with select children, but this is not as good as a series of checkboxes.
I put this as a Github issue, but thought maybe it would get more traction here
You must be logged in to reply to this topic.