Function to delete activity based on date recorded
Hello, I’m beginner in WordPress and Buddypress.
I have some trouble here, I wanna create the function to delete activity based on their date recorded, for example the activity will be deleted if they more than 30 days.
I have know how to set up cron, buat I confused when create that function with “bp_delete_activity()”, I’ve been looking around to get idea use that function, but I can’t find the way out.
Is there anyone here get idea to do this? Or may be give me a hint to do this?
You must be logged in to reply to this topic.