Hiya! The plugin works fine on my site, except for a particular use case where I am adding posts using Gravity Forms. It appears that the one-time hook isn’t being set, because when I check the post the defaults that I want are set, and the checkbox is checked, but it won’t set the time to expire until I save the post again.
I’ve read the other threads about programatically setting the expiration, and have deduced that I need to get wp_schedule_single_event to run when I submit the form. Fortunately, I think the way to do that is gform_after_submission.
Thing is, I don’t really know PHP very well, and I can’t figure out how to create the scheduled hook, or how to call _scheduleExpiratorEvent. Any direction would be useful. ^_^
- The topic ‘Calling the scheduler for expiring’ is closed to new replies.