- This topic has 1 reply, 2 voices, and was last updated 4 months, 2 weeks ago by .
When using a group type that is clonable, the fields sanitize callback gets looped through. Is there another way from the Metabox API to get around this?
Example; There is one post advanced select field in a group, if we wanted to make sure that no duplicate post IDs are selected the
sanitize_callbackisn’t aware of the collection of values, but each cloned field value. Does that make sense? (basically logging the value of that callback returns the array(POST_ID_OF_SELECTION) * N (number of cloned fields) (instead of array(0=>ID, 1=>ID) etc.
- You must be logged in to reply to this topic.