Home Forums Plugin Support WP User Frontend Pro Post status not following form settings

This topic is: not resolved

This topic contains 18 replies, has 4 voices, and was last updated by  Marcus 5 years, 6 months ago.

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
  • #4776

    Post count: 15
    This reply has been marked as private.

    Tareq Hasan
    Post count: 2831

    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.


    Post count: 15

    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 );

    Post count: 19

    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 4 posts - 16 through 19 (of 19 total)

The topic ‘Post status not following form settings’ is closed to new replies.