Hi,
As far as I know the post ID is sequential and numerical, and cannot be changed from that format. If you raised this because you are looking to update the url structure you can do so in Permalinks Settings, https://codex.wordpress.org/Settings_Permalinks_Screen
Cheers
Hi,
Thanks for your answer!
I want to have a random and hard to quess post id for woocommerce orders so the support team cant see all the orders or quess the order post id.
Thanks!
Obfuscating the order ID falls into the security by obscurity category, which you probably realize is not true security. Making the order IDs random alphanumeric would involve many changes to core code and altering the DB tables, both of which would be a really bad idea.
You should focus on a solution that provides true security where knowing the order ID accomplishes nothing if the user is not to have such access. Something involving user capabilities or a particular user meta value that relates to some post meta value of each order. If there is not a match, the user is not allowed to view the order. This would involve adding the appropriate fields so admins can manage who sees what. When an order is created, it must be assigned to some user or user group. Any template that displays order data needs to be modified to check for this added restriction. Any order query should be restricted accordingly.
This all should be possible through hooks and custom templates. It may take some digging to find all the right spots to make adjustments, but then you will have a truly secure implementation instead of security theater.