Title: Problem with published to draft
Last modified: August 21, 2016

---

# Problem with published to draft

 *  Resolved [sikkepit3](https://wordpress.org/support/users/sikkepit3/)
 * (@sikkepit3)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/problem-with-published-to-draft/)
 * Hey,
 * I am having a problem with a plugin I am using. The plugin imports content from
   certain categories of sites and then reposts them on my site. However the content
   will automatically be published while I would like it to be saved as a draft 
   instead.
    How would I have to change this? Below I have pasted a part of the 
   code which I think should contain the problem. I do find some stuff like ‘post_status’
   etc. and I have tried changing some stuff however it does not work then.
 * I hope you can help me out with this :).
 * _[Large block of damaged code removed. Please post code or markup between backticks
   or use the code button. Or better still – use a [pastebin](http://pastebin.com/).]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [sikkepit3](https://wordpress.org/support/users/sikkepit3/)
 * (@sikkepit3)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/problem-with-published-to-draft/#post-4284800)
 * Here is the code link:
 * [http://pastebin.com/hcNB6uhV](http://pastebin.com/hcNB6uhV)
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/problem-with-published-to-draft/#post-4284901)
 * This line publishes all except posts where “NSFW” are found:
    `$post_status =(
   $nsfw && $rsp_settings['nsfw_draft']) ? 'draft' : 'publish';`
 * To have all posts as draft, change it to this:
    `$post_status = 'draft';`
 * If that doesn’t work, I wouldn’t know what else to try, good luck.
 *  Thread Starter [sikkepit3](https://wordpress.org/support/users/sikkepit3/)
 * (@sikkepit3)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/problem-with-published-to-draft/#post-4284925)
 * bcworkz you the man! Awesome man, really apreciate it. It works perfectly now!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with published to draft’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [Coding](https://wordpress.org/support/topic-tag/coding/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 2 participants
 * Last reply from: [sikkepit3](https://wordpress.org/support/users/sikkepit3/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/problem-with-published-to-draft/#post-4284925)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
