Delete automatically posts
-
I’m writing a plugin and I need to delete posts after a certain time. How is the best way to check the date of the post. I was first thinking to put function in the wp_footer hook, but the check is done thousands of times a day (depending on pageviews) and is not really the way to do it.
I’m still learning to write plugins, so I hope someone can consult me!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Delete automatically posts’ is closed to new replies.