• Okay, I can’t believe this is not here, but since I can’t find it, I’m asking.

    Where do we set the default expiration time? For example, if I want a post type to expire by default 10 days after it is posted, where do I set “10 days”?

    My users will be adding posts directly and they will not be able or likely even willing to set the expiration time, so I must have it as a default.

    https://www.ads-software.com/plugins/post-expirator/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter trex005

    (@trex005)

    Doing a little more digging, it seems this does not actually hook into the create post functions, instead it only works with the form submit. So if posts are created in any automated form (for example by another plugin) it will not use the default schedule at all. Is there any way around this?

    Could this be of any help? :
    https://adambrown.info/p/wp_hooks/hook/save_post

    You have to use the custom field and set up with on of these expression :

    +1 day
    +1 week
    +2 weeks
    10 September 2000
    +1 week 2 days 4 hours 2 seconds
    next Thursday

    You have to use the custom field and set up with on of these expression :

    +1 day
    +1 week
    +2 weeks
    10 September 2000
    +1 week 2 days 4 hours 2 seconds
    next Thursday

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default Expiration time’ is closed to new replies.