Coding a plugin on WordPress; when should I sanitize? [duplicate]

I am developing a custom plugin on WordPress for a client. Just a simple question: when I am using update_post_meta() and update_user_meta(), do I need to use the WordPress sanitization functions? I was under the impression that I don’t, since the documentation says that $meta_key and $meta_value should be raw.

Are there any other instances / WordPress features in a plugin wherein I will need to sanitize my data?

0

Leave a Comment