Support

Account

Home Forums General Issues update acf field by add_post_meta and security

Unread

update acf field by add_post_meta and security

  • Dear Friends

    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);

    best Regards
    Saro

Viewing 1 post (of 1 total)

The topic ‘update acf field by add_post_meta and security’ is closed to new replies.