[wp-hackers] Best way to allow slug rewrite of CPT via i18n

Tom Barrett tcbarrett at gmail.com
Tue Nov 26 21:48:36 UTC 2013


Hello

What is the best way to allow the of a custom post type to change via
translation.

I'm currently doing this:
   'rewrite'  => array( 'slug' => __( 'glossary', WPG_TEXTDOMAIN ) ),

Is that good?

Thanks!
-- 
http://www.tcbarrett.com | http://gplus.to/tcbarrett |
http://twitter.com/tcbarrett


More information about the wp-hackers mailing list