Replies: 1 comment
-
I see the point, a thing to think about! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Overview
When I added a field as a required on my custom CPT, I can call relative API without send this field and I received http status 201. Maybe if the field is required I cannot add anything.
Expected Behavior
I want that when I add my field as a required field on my custom CPT, I can insert my new CPT only if in the body of REST API POST is declared the new field otherwise I have to receive an error if I don't add this specific field into body
Current Behavior
Now when I try to add my new CPT from REST API I can do it, without receive any errors despite missing required field.
Steps to Reproduce (for bugs)
WordPress Environment
WordPress 5.0.3 running Twenty Nineteen theme.
Beta Was this translation helpful? Give feedback.
All reactions