How to i18n the URL slug for built in post type?
-
I want something like this:
register_post_type('post', [ // irrelevant args 'rewrite' => ['slug' => __('post', 'myi18ndomain')] ]);
This probably won’t work because
post
is a built-in post type and is impossible to re-register. I didn’t bother testing though.What this would allow me to have is:
/post/english-post/ /objava/slovenian-post/
Is creating a new post type just to have this the way to go?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to i18n the URL slug for built in post type?’ is closed to new replies.