WordPress.org

Ready to get started?Download WordPress

Forums

Electric Studio Auto Post Expire
Not setting expiry date (10 posts)

  1. talkingaboutthis
    Member
    Posted 1 year ago #

    This plugin used to work for me a few months ago, but suddenly it stopped (maybe with wp update? currently using 3.5). It doesn't automatically set expiry date and if I set it manually it remembers it, but doesn;t change the post to draft.

    What is interesting is that I have set up an email to be sent to the post author when the post changes from published to draft and the emails do get sent, which means the plugin does change the status, but then reverts back to published somehow...

    any ideas?

    http://wordpress.org/extend/plugins/electric-studio-auto-expire-post/

  2. 3cstudio
    Member
    Posted 1 year ago #

    Same issue here... no responses from developers? Used to work like a charm; now, as you state, Published don't go to Drafts and revised dates aren't behaving as such. Also noticed this snafu beginning around the turn of the year. Deleted the plugin from the list, reinstalled and reset -- no effect on the incorrect outcomes.

    Please advise, Electric Studio!

  3. talkingaboutthis
    Member
    Posted 1 year ago #

    I believe the problem lies in the function used - wp_transition_post_status
    in post.php this calls to transition_post_status to make the change, but there is no such function in wordpress, the function is actually called _transition_post_status. The other functions that wp_transition_post_status calls are ok, which explains why emails are sent.

    This function is basically intended for stg else, it is for publishing posts, not for unpublishing. I see that the plugin used another function in the past, maybe this is when it stopped working?

    I will test this on a test install...

  4. 3cstudio
    Member
    Posted 1 year ago #

    Thanks for the follow-up, studioreforma, but I gave up. :-/

    I went with similar plugin Post Expirator instead: http://wordpress.org/extend/plugins/post-expirator/ and it works perfectly.

  5. talkingaboutthis
    Member
    Posted 1 year ago #

    just tested something, which proved my theory. If in this plugin settings I choose to switch the posts to "trash" rather than draft - it works. It uses another function, (wp_trash_post), so basically everything works fine except for the wp_transition_post_status function.

    I could change this in my code easily, but it's better if the plugin is changed so that it works for everyone...

  6. talkingaboutthis
    Member
    Posted 1 year ago #

    Well that other plugin doesn't work for me, it doesn't do auto expiration, which is what we need.

  7. 3cstudio
    Member
    Posted 1 year ago #

    Nice find -- now if the plugin developers would only take notice? :) Good work... I see what you mean by needing auto-expiration now. My post types were for coupon related items, so they needed to simply go to Draft at a certain date for potential future 'recycling' of coupons later in the year.

  8. Expressions
    Member
    Posted 1 year ago #

    OHHHH studioreforma,nice, switched all to trash. If you could point me in the direction of code to edit that would be great. I'm quite happy to edit it, just to get it working again, rather then wait for the fix from the developers. Been too long.

  9. talkingaboutthis
    Member
    Posted 1 year ago #

    you should use wp_update_post instead, the code is pretty much there, commented out

  10. Expressions
    Member
    Posted 1 year ago #

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.