I have input value “<iframe>....</iframe>
” (param ‘post_content’). When i execute wp_insert_post, function cut off my tag.
How to disable HTML filter in wp_insert_post ?
I have input value “<iframe>....</iframe>
” (param ‘post_content’). When i execute wp_insert_post, function cut off my tag.
How to disable HTML filter in wp_insert_post ?
You must be logged in to post a comment.
You could use call kses_remove_filters() before saving and call kses_init_filters() afterwards, but pay attention it will also remove filtering from title, excerpt and comments,
So what you should do is just unset the content filters.
and after the post is saved