-
My Woocommerce Post IDS have been jumping by 100 each time a new order is created, WooCommerce support informed of the following:
I took a closer look at the URLs in question (for example /wc/v3/system_status or /wc/store/v1/products). These are actually part of WooCommerce’s REST API. Normally, they should only be accessed through the WordPress REST base path, such as:
/wp-json/wc/v3/system_status
/wp-json/wc/store/v1/productsYou can find it loads here: https://drpenofficial.shop/wp-json/wc/store/v1/products
It’s not a standard page and should not be handled as a regular post, which has a post ID assigned to it. It is accessed programmatically via API, not manually by a person.
When used correctly, they return structured data (JSON), not a WordPress page or post.
On your site, however, we’re seeing that these API endpoints are being assigned a WordPress post ID, as if they were regular pages. That’s not expected behavior. Based on our review, this is very likely caused by your SEO plugin (Rank Math), which may be trying to “index” or create post entries for these API routes.
Next step
To ensure this is handled correctly, we recommend reaching out to Rank Math’s support team and asking whether they officially support excluding WooCommerce API routes from being treated as posts. They’ll be able to confirm if there’s a setting or filter that can be applied to prevent this behavior.
Sharing this context with them will help:
REST API endpoints should not be assigned post IDs.
API calls should always include /wp-json/ in the URL.
Treating these as posts could cause unexpected redirects, canonical tags, or indexing issues.In summary, this issue isn’t caused by WooCommerce itself, but by how the SEO plugin interprets API URLs. For guidance on excluding these endpoints from SEO indexing, contact Rank Math’s support team at https://rankmath.com/support/
You must be logged in to reply to this ticket.