How to change description length in Comparison Table in WP Product Review

It's possible to change the description length which shows up in the comparison table of WP Product Review. To do this you need to either add the following code to the functions.php file of your child theme or create a site-specific plugin, see here on how

function shorten_desc(){
return 12;    
}
add_filter( 'wppr_excerpt_length', 'shorten_desc' );

Change the 12 to the number of characters you want to show instead. The short description will be appended with ellipses(...).

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us