Location: PHPKode > scripts > WH Social > wh_social/admin/handler/trimwords.php
<?php

    function wordCut($text, $maxlen = 30, $suffix = '') {

    if(strlen($text) < $maxlen) return $text;

        $trunc = array(explode(C_DELIMITER, wordwrap($text, $maxlen, C_DELIMITER, TRUE)));

        return trim("{$trunc} {$suffix}");
        }

?>
Return current item: WH Social