I have a HTML form that get some information from people, fields value send by POST and using add_post_meta or update_post_meta functions they will be stored in ACF fields. I have some concerns about security. i tried to use addslashes() function but slashes will appear in acf fields inside admin adrea. what is the securest way to store this data?
$var = $_POST[‘var’];
add_post_meta($post_id, ‘meta_key’, $var);