I suggest you ...

Set expiration via PHP function (for when I'm auto-creating posts)

Would love to have a PHP function I can use to set/update a post's expiry settings from anywhere, like so: expirationdate_updatedate($postid, $args).

Reason being I have posts auto-create using save_post(). I can emulate your meta values but I don't think that actually schedules expiration.

I skimmed your code to see if there was already something like this I could call, but it seems to schedule based on the values of the meta box, which is hard to emulate from other places.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Brett David GoodrichBrett David Goodrich shared this idea  ·   ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base