Automatically delete posts one by one depending on published time
Let me answer your questions starting from the second one… So… Why is it deleting all posts at once? You scheduled you event correctly, so it will run once a day. And in the function that is run, you select some posts and delete them, if they’re expired: $args = array( ‘post_type’ => ‘post’, ‘category_name’ … Read more