Я воспользовался этим кодом
add_filter( 'the_title', 'shorten_woo_product_title', 10, 2 );
function shorten_woo_product_title( $title, $id ) {
if ( is_shop() && get_post_type( $id ) === 'product' ) {
return substr( $title, 0, 95 );
} else {
return $title;
}
}
Только почему-то в некоторых...