Viewing 4 replies - 1 through 4 (of 4 total)
  • Thanks for your comment, @maciwol

    I’m afraid that the plugin doesn’t have an option to shorten/limit the comment to 50 characters – thanks for the suggestion! I have added it to our feature request list so that we can track the amount of demand for it. We will let you know if we add this to a future version of the plugin.

    In the meantime, I’m sorry that this isn’t possible. As an alternative, you could set the excerpts option to ‘true’ to show an excerpt of the comment (limited to 20 words), or ‘false’ to show the full comment.

    Please let us know if there’s anything else we may help you with.

    Cheers!

    Thread Starter Tsaworyt

    (@maciwol)

    Thank you for the quick reply.
    If there is a limit of 20 words, then where is the code
    can i change it to 10 words?

    Hi,

    You would need to use the ‘comment_excerpt_length’ filter which controls the number of words in a comment excerpt. The default is 20 words, but this would reduce it to 10 words:

    
    add_filter( 'comment_excerpt_length', function( $words ) {
       return 10;
    } );
    

    That’s really helpful info, Andy – thank you! Might wanna add that in the FAQ or description for the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Length of the comment text’ is closed to new replies.