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.
Brett David Goodrich commented
EDIT: Well hey, setting expiry date meta does work.