I've added meta box: checkbox on admin edit screen
<input type="checkbox" name="changeposition" />
So how could we sanitize the input came from the checkbox as we do for input type text by sanitize_text_field()
. Is there any function like this for checkbox sanitization or should we create custom method for it?
absint()
.sanitize_text_field()
.