I would like to make a system that would automatically put a post of a custom post type in draft on a certain date. Indeed, I have a field ACF “expiration date” and, when the date in question arrives, I would like the post to be automatically put in draft.
I’m not a back-end professional, but I know how I’m going to build my job. I can achieve this effect with the function wp_transition_post_status() but having never created a function WordPress itself, I don’t know how to do it and especially how to make this function communicate with a specific custom post type.
Would you have any leads to tell me to do this?
Thanking you in advance.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users