Hello,
I would like to know if it is possible to define a publish timing when creating a paid post with Cred. I'd like for example to let the post "visible" only during 3 month and cancel it thenafter.
Thanks
Pat
Hi Pat,
What is the "paid post" you mentioned above?
You can try CRED action hook "cred_save_data" to define the publish time of post when creating a paid post with Cred
More help:
https://toolset.com/documentation/user-guides/cred-api/
For the second question: “I'd like for example to let the post "visible" only during 3 month and cancel it then after.??
It is not possible within Toolset, I suggest you try create a daily wordpress schedule event, to update the status of outdated posts to "trash"
More help:
http://codex.wordpress.org/Post_Status
http://codex.wordpress.org/Function_Reference/wp_schedule_event
Hello luoy,
Thanks for your quick answer.
Concerning point 1, paid post is a product created with Woocommerce.
For point 2, I have already found a plugin Post Expirator that cover this topic, so it's OK for me.
Regards
Pat
Pat, is this problem resolved? do you need example codes for how to use CRED action hook "cred_save_data"?
Hi luoy,
Would be good to have these examples.
Thanks
Pat
Here is a example in the document:
https://toolset.com/documentation/user-guides/cred-api/
cred_save_data: (action)
Hook to do custom action when post data are saved to database.
And there is a lots of example in other thread:
hidden link