Skip to main content
2 of 2
deleted 19 characters in body

How can I properly sanitize the update_option in WordPress?

I am using this part of the code in my WordPress plugin to update the option.

update_option('button_loc_shop_page', $_POST['button_loc_shop_page']);

I want to sanitize this. How can I properly sanitize it? Any comments or pointers would be really appreciated.