Custom item ID in wordpress?

Is it possible when you create a product to specify a custom ID?
March 23rd 20 at 19:41
1 answer
March 23rd 20 at 19:43
no, the product id is created automatically. In the table wp_posts is the ID field (autoincrement)

If You need to save for what that product its unique number, use a custom (meta) fields. So a product has a sku field - a SKU, which You can use at your discretion. It is remarkable that there is a built-in search function on this field wc_get_product_by_sku.

Find more questions by tags WooCommerceWordPress