Viewing 3 Topics - 16 through 18 (of 18 total)
Author Posts
June 11, 2013 at 8:03 am 4785
Tareq Hasan Tareq Hasan

I am sorry to say, but the changes I asked you to made wasn’t added in the core yet. So you lost your changes maybe and it’s again not working.

June 13, 2013 at 2:47 am 4866
titanweb titanweb

Yeah I know what you’re saying but I’ve added them back in and it’s still not applying the correct post_status. Would I need to recreate the form that generates the posts?

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.

 * Publish the post if payment is made
 * @param int $post_id
function handle_post_publish( $order_id ) {
    $post = self::post_by_orderid( $order_id );

    if ( $post && $post->post_status != 'publish' ) {
        $update_post = array(
            'ID' => $post->ID,
            'post_status' => 'draft'

        wp_update_post( $update_post );
December 9, 2013 at 8:50 am 13518
Marcus Marcus

I’m having the same issue on a new install, need to have the new post status as ‘draft’ or ‘pending’, I tried the fix above, but all posts are still ‘publish’.

Viewing 3 Topics - 16 through 18 (of 18 total)