FREE SHIPPING
Pan India Delivery
ONLINE PAYMENT
Payment methods.
24/7 SUPPORT
100% SAFE
View our benefits.
add_filter( 'the_title', 'wtwh_shorten_woo_product_title', 9999, 2 ); function wtwh_shorten_woo_product_title( $title, $id ) { if ( is_shop() && get_post_type( $id ) === 'product' ) { return wp_trim_words( $title, 1 ); } else { return $title; } }