Sanitize custom field checkbox option
-
I am trying to implement a checkbox in a custom field type, but after saving the field it is always “checked”.
What is the correct way to sanitize this type field?My code: https://github.com/angelorocha/superstar/blob/master/inc/cmb2-fields/wpss_cmb2_formfield_field.php
Line 109.
Thanks!
(this is my cmb2 theme project)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Sanitize custom field checkbox option’ is closed to new replies.