Drat auto database insertion on refresh
-
Hello,
I’ve noticed a weird behavior of WordPress when visiting Posts > Add New.
It auto inserts drafts every time i refresh the page. I end up having database filled up with unwanted, unused post data. Is this normal?I’ve noticed this while developing some plugin which needs to take an action in time when NEW post is inserted and insert its own data.
I don’t want to fill the database with additional data that is related to unused posts.Where I’m trying to hook up is save_post action. I have a problem determining if the action is taking place when post is updated or when new post is inserted.
Basically, I need to hook up somewhere to take action just when there is a data insertion (but not empty post) and when the post is updated.
And I need access to post data, not just ID.I’m confused because there is more than one function which could do the job, but neither does it the way I want it (probably).
Thanks,
Sylwester
- The topic ‘Drat auto database insertion on refresh’ is closed to new replies.