0

I'm trying to understand the ID mechanism in wp_posts in WordPress.

Whenever I add a product (woocommerce), page, or an image, they are recorded in wp_posts and assigned an incremented id. Let's say, I added 100 items. The id of the last item would be 100. Then I removed 50 of them. The next item I add will have the id 101, not 51. So this id mechanism doesn't check the existing items for the next generated id. Last used id must be stored internally. How/where can I find it?


This is a follow up to another question os SO.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.