WordPress.org

Ready to get started?Download WordPress

Forums

want to stop stripping out from my post content (1 post)

  1. maulikvora
    Member
    Posted 3 years ago #

    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="http://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="http://www.youtube.com/v/-T9omX2XD2s?fs=1&hl=en_US" 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.

Topic Closed

This topic has been closed to new replies.

About this Topic