WordPress bypass sanitize filter for post insert

Photo by Mads Thomsen on Pexels.com

I found solution for wordpress 3.6 and just want to share here filter had to be unset due to security problems with it. You could try doing kses_remove_filters() before inserting the post and kses_init_filters() after inserting the post if you are trying to avoid the kses filtering of the post fields. Just be wary since… Continue reading WordPress bypass sanitize filter for post insert