WordPress.org

Ready to get started?Download WordPress

Forums

Expiration Date with a Notification (4 posts)

  1. seemsse
    Member
    Posted 5 years ago #

    I'm currently using the Post Expirator plugin which when set a custom field is created with a key "expiration-date". I'm not quite sure how the value works. If I set an expiration date of December 17, 2008 @ 11 it enters it like this: 1229529600

    What I want to do is setup a cron job to check the expiration-date one week before and send an email to the post owner letting them know it will expire in a week.

    But like I said I can't figure out how to check 1229529600 to see if it's one week before.

    Any ideas??

    or would it be easier to go two weeks out from the post-date and check that?

  2. justbishop
    Member
    Posted 4 years ago #

    I need this too! I posted a feature request to the plugin's sourceforge page, but does anyone have a code mod that could do this?

  3. ssgupta
    Member
    Posted 4 years ago #

    This is Unix date format: http://en.wikipedia.org/wiki/Unix_time

  4. justbishop
    Member
    Posted 4 years ago #

    that is so far over my head that it's not even funny.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.