Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
You set $duration to how far back you want to allow entries to remain. It's currently set to -3 DAYS in my example. This means any post older than 3 days will be deleted. If you need 5 days for example you'd set it to -5 DAYS. This is using PHP DateTime object API. See the below documentation on how to use relative formats as there's a lot of flexibility in it.I was a bit lost with the $duration system.
Please Log in to join the conversation.
Please Log in to join the conversation.