All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
3answers
3k views

What's the proper way to sanitize checkbox value sent to the database

I have tried using sanitize_text_field() and esc_attr() to filter checkbox data when saving their values to the database, but it is causing the data not being saved. What is causing it and what's the ...