TRUE, 'publicly_queryable' => TRUE, '_builtin' => FALSE, ); $types = get_post_types( $args, 'objects' ); if ( ! empty ( $types ) AND function_exists ( 'pll_register_string' )) { foreach ( $types as $type ){ pll_register_string ( 'themes' , $type->name ); pll_register_string ( 'themes' , $type->label ); if ( ! empty ( $type->description )) { pll_register_string ( 'themes' , $type->description); } foreach ( $type->labels as $label ) { pll_register_string ( 'themes' , $label ); } } } return $cpts ; } add_action('init', 'cpt__labels');