so when a CPT sample expires, set its sample_active field to 0.
Unforunately, when sample expires, sample_active field stays to its default 1.
What am I missing here?
Hello. Thank you for contacting the Toolset support.
Well - I see that you did not activated the post expiration setting for your CRED form:
=> hidden link
Please check following screenshot:
=> hidden link
So - please activate the "Expiration date:" settings by clicking on the checkbox and set your desired values. For example - see this image:
=> hidden link
Once you set the post expiration values - create a new post with old date and check it it the post is expired in 2 minutes or not.
Ok - I see you added the custom post expiration time using CRED hook that you added to funcitons.php file.
To fire the action - you need to activate the "Expiration date:" setting from CRED from.
Please try following steps:
- Activate the "Expiration date:" setting from CRED from
- Create a new post
- check if it fires the expiration custom action