A custom post type can be registered with one slug (e.g. products)
register_post_type('products', $args);
How can I add multiple slugs to the same Custom Post Type?
website_address.com/en/products/
website_address.com/fr/produits/
website_address.com/it/prodotti/
The rewrite argument for
register_post_type()
accepts an array. One of the array keys isslug
. So you could i18n it like this:Idea taken from here.
Ref: https://codex.wordpress.org/Function_Reference/register_post_type