This topic contains 18 reply and 4 voices, and was last updated by Marcus 7 years, 6 months ago
Viewing 15 Posts - 1 through 15 (of 18 total)
Author Posts
April 10, 2013 at 2:22 am 1983
Marcus I've made a form where the post created should have the post status "Draft" but for some reason it's not following this setting and just defaults to "Published". I can't find anywhere in the settings where there is a global setting for this so I can't really imagine why it's defaulting to published when I clearly have it set to draft. I'm creating a custom post type post "product" which is used by Woocommerce, sorted under a custom taxonomy. I'm creating the post from the front-end with some custom fields and an image upload. It is required that you need to be logged in and have purchased a subscription pack. Has anyone else run into this problem?
April 10, 2013 at 3:12 am 1985
titanweb titanweb

However when I edit the post from the Dashboard, it changes the post status to draft correctly.

April 12, 2013 at 1:37 am 2065
Tareq Hasan Tareq Hasan

I am not sure whats going on, never faced any problem like this. Is your every form behaving like this?

April 15, 2013 at 1:36 am 2217
titanweb titanweb

I’ll test on a newly-made form and see if it occurs still.

April 18, 2013 at 8:07 am 2432
titanweb titanweb

I’ve made a new form and the post still isn’t getting saved as “draft”…it’s still published on creation.

I’ve only got two forms. The one for creating custom posts “product”, and for registering users. I have subscription packs enabled.

Can I send you login details so you can have a look at my settings/plugins?

April 18, 2013 at 8:13 am 2436
titanweb titanweb

Also I have two users. My admin account and a customer account. The post in the backend recognises the author as my admin, even though I’ve created it with my customer account :/

April 18, 2013 at 8:27 am 2441
Mahi Mahi

Is your site online ? can you give us a test account ?

reply with private settings .


April 19, 2013 at 1:30 am 2500
titanweb titanweb This reply has been marked as private.
April 19, 2013 at 7:16 am 2513
Mahi Mahi

I just test it and its working perfectly !

After submit the product if you go to SHOP , you can’t see your product(s) there. Cause, they haven’t approved.

Go to admin area -> Products-> post name

on right hand side you will see your Items status like bellow –



April 19, 2013 at 8:48 am 2531
titanweb titanweb

If only this was true 🙂

That’s just a custom field, it actually represents nothing other than emailing the client depending on the status.

It’s here that is the issue:

The status, which is set in the form settings, should be Draft.

When you edit this same product from the front-end, it does change the status. Only when you create does it not set it to Draft :/

Also the only reason you are the author of the product is because you’re an Administrator account. This makes me think that I might need to add more capabilities to the Customer role to enable them to be an author in the first place.

So yeah, my initial problem still exists 🙁 Thank you for at least try though 🙂

April 19, 2013 at 10:25 am 2534
Tareq Hasan Tareq Hasan

The problem is in the plugin and it conflicts with the subscription setting. If you enable subscription and you have balance, it’ll publish your post automatically.

As a quick solve, I would suggest you to change `/class/subscription.php` line:251, where it says `’post_status’ => ‘publish’` change it to `’post_status’ => ‘draft’`. I’ll try to fix this bug.

April 22, 2013 at 1:32 am 2652
titanweb titanweb

Hi Tareq! Thanks for sorting that out for me 🙂 The status get’s changed the “pending” now, instead of “draft” but I can work with that. Any status that removes posts visually from the front-end will do 🙂

When I created a post with an Administrator account, the post status remained as published.
When I created a post with a Customer/Subscriber account, the post status was changed to “Pending”.

May 1, 2013 at 8:22 am 3053
titanweb titanweb

With your latest update (2.1.4) was this fixed or do I have to re-apply the hotfix to the subscription.php file?

May 1, 2013 at 8:33 am 3054
Tareq Hasan Tareq Hasan

Sorry, it’s not been fixed yet.

June 11, 2013 at 6:21 am 4774
titanweb titanweb

Hrm I’ve just tested this again but and it doesn’t seem to be honouring my form setting to save the new post as ‘draft’, ‘pending’ or anything else for that matter (other than published).

Is there somewhere else I can change code to make sure it stays as draft/pending?

I’ll provide links and log in details in a private reply.

WordPress 3.5.1
WPUF 2.1.5

June 11, 2013 at 6:25 am 4776
titanweb titanweb This reply has been marked as private.
Viewing 15 Posts - 1 through 15 (of 18 total)