Title: wp_insert_post question
Last modified: August 19, 2016

---

# wp_insert_post question

 *  [mailkolli](https://wordpress.org/support/users/mailkolli/)
 * (@mailkolli)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp_insert_post-question/)
 * I am writing a php program to insert a wordpress post using wordpress functions.
   When I use the function wp_insert_post, any SCRIPT (Javascript) tags in my post
   content are removed. Is there is a way to override this in WordPress? Thanks.

Viewing 1 replies (of 1 total)

 *  [as247](https://wordpress.org/support/users/as247/)
 * (@as247)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp_insert_post-question/#post-1981846)
 * $post[‘**filter**‘]=’**db**‘;
    …. wp_insert_post($post);

Viewing 1 replies (of 1 total)

The topic ‘wp_insert_post question’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [as247](https://wordpress.org/support/users/as247/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/wp_insert_post-question/#post-1981846)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
