• I am trying to insert posts using function wp_insert_post() from my self-made script.

    content of my post contains video-embed code of google.
    <object width=”480″ height=”385″><param name=”movie” value=”https://www.youtube.com/v/-T9omX2XD2s?fs=1&hl=en_US”></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”https://www.youtube.com/v/-T9omX2XD2s?fs=1&hl=en_US&#8221; type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”480″ height=”385″></embed></object>

    when I am running scripts to insert this content in my post, by my surprise It was got stripped out from post.

    I have surfed the internet and wordpress forum, I found that It is a SECURITY feature of wordpress.

    I want to remove this security feature from my own wordpress site. so what should I do to opt-out this stripping function? so that I can add above html code as a content of a post.

    Please give me the function name which is stripping out this codes from my content.

  • The topic ‘want to stop stripping out from my post content’ is closed to new replies.