WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
Set posts to draft on given day, but with fix time (3 posts)

  1. thisismyalterego
    Member
    Posted 2 years ago #

    Hello there,
    I would like to "disable" the time option so that the expiration date in the backend can be changed but the time is fixed as "23.59" for example.
    Is this possible by changing some settings or do I need to edit anything in the php code?

    A solutions would be great because I have added an expiration date to 200 articles recently but forgot to change the time :S A "23.59" default would be really cool for me…

    http://wordpress.org/extend/plugins/post-expirator/

  2. Aaron Axelsen
    Member
    Plugin Author

    Posted 2 years ago #

    Currently this would have to be done in the php code as there are no options to support this.

    You would have to do two steps:

    1) modify the plugin to hard code your desired time (this i could likely add into the core)

    2) update all of your existing 200 articles to expire at that desire time.

    When each post is saved, there is a "post meta" item added that contains the expiration timestamp. So, you would need to loop through and update that timestamp to retain the same date, but with your preferred time.

  3. thisismyalterego
    Member
    Posted 2 years ago #

    Hi there,
    my intention was that I do not need to change all my 200 recently edited articles again… so… well…

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.