• Resolved Rhondagreene

    (@rhondagreene)


    Hi there!

    I am wondering if it’s possible to allow users to edit ads recovered from “temporary”.

    I’ve had a pretty high percentage of abandonment while creating ads, so I’d like to start trying to recapture those people. What I would like to do is save autodrafts from temporary to regular drafts, then send users an email letting them know that we’ve got the draft if they want to come back and publish it.

    Is there a way to make these recovered drafts show up for users under their Manage Ads page? I have done a couple of tests and when I send them to drafts, they aren’t showing up in the front-end manager for users to access.

    Thanks!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, this is not possible, while you could list posts with auto-draft status in the [adverts_manage] shortcode using adverts_sh_manage_list_statuses filter, the post will not change status.

    The post_status changes only when publishing the Ad from [adverts_add] shortcode.

    Thread Starter Rhondagreene

    (@rhondagreene)

    I don’t need the status to change necessarily – in the example above I was talking about doing that manually. I had initially changed one from temporary to a regular draft to see if that would make it show up on the manage page, but it didn’t, so I ended up here! ??

    I just want to figure out how to make those ad drafts that are being abandoned still be visible on the [adverts_manage] page, instead of only published ads. As long as I can get them to show up if someone comes back later to finish, I should be all set!

    Plugin Author Greg Winiarski

    (@gwin)

    You can show the drafts on the [adverts_manage] by adding the code below to your theme functions.php file

    
    add_filter( "adverts_sh_manage_list_statuses", "my_adverts_sh_manage_list_statuses" );
    function my_adverts_sh_manage_list_statuses( $s ) {
        $s[] = "auto-draft";
        return $s;
    }
    
    Thread Starter Rhondagreene

    (@rhondagreene)

    Hmmm, it doesn’t seem to be working?

    I created a subscriber-level account to test it, started an ad then navigated away before publishing, and the manage ads page still says “You do not have any Ads posted yet.”

    https://manisteelove.com/classifieds/

    (I also want to thank you for your great support – over the weekend I had a very bad experience with another plugin developer who seemed completely disinterested in helping with basic usability issues being reported by multiple users, some of whom had bought hundreds of dollars worth of add-ons and were understandably very upset. The developers who DO offer amazing support and extensive documentation deserve more thanks and recognition, and my WP Adverts experience has been absolutely wonderful!)

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, note that the draft will be left undeleted in rare cases only, usually when you leave the [adverts_add] page WPAdverts will delete the draft in the background.

    If you do not want to automatically delete any of the drafts you can try adding the code below in your theme functions.php file

    
    add_action( "init", "disable_auto_draft_deletion", 1000 );
    function disable_auto_draft_deletion() {
        remove_action('wp_ajax_adverts_delete_tmp', 'adverts_delete_tmp');
        remove_action('wp_ajax_nopriv_adverts_delete_tmp', 'adverts_delete_tmp');
    }
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allow users to edit recovered drafts?’ is closed to new replies.