Post Expiration via code
-
Hello,
First of all thank you for your awesome plugin. It works perfectly!I have a question though, I created a script that allows me to create custom product programmatically. The problem is that when I create a product programmatically, the expiration date will not be set. Instead, if I create the product (woocommerce of course) manually on wordpress, the expiration date works as expected.
The only way to make a product created programmatically to expire, is to manual update the product itself on WordPress.
My question, in other word is: how can I set the expiration date via code programmatically once I created my custom product? Or, is there a way to make it happens via WordPress?
Thank you!
- The topic ‘Post Expiration via code’ is closed to new replies.