Testimonial::LimitWordCount
Limit this field's content by a number of words.
Signature
private function LimitWordCount(
$content,
int
$numWords,
[string
$add = '...'] )
Parameters
$content
—$numWords
— int- Number of words to limit by
$add
— string- Ellipsis to add to the end of truncated string
Returns
- string