Post publish with a hook
-
Hello,
I’m using post expirator and like it.
I still have an issue : I’m creating custom post type with a form. The post is first created as “draft” and when the payment occurs, I move the post from “draft” to “publish” by writing in the database post_status fied with a hook.
The issue is that by doing this, the post expirator does not work. I have to manually open the post and save it to make it work.
Is there a specific field I have to update in the same time I move my post from “draft” to “publish” with my hook ?
Thanks
Pat
The topic ‘Post publish with a hook’ is closed to new replies.