Coding a plugin on WordPress; when should I sanitize?

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?

Read more here:: Coding a plugin on WordPress; when should I sanitize?

Leave a Reply

Your email address will not be published. Required fields are marked *