30 && function_exists('mb_strimwidth') ) { $text = mb_strimwidth($excerpt, 0, $length, '…'); } else { $text = wp_trim_words($excerpt, $length, '…'); } } foreach (wp_extract_urls($text) as $url) { $text = str_replace($url, '', $text); } $text = apply_filters('blocksy:excerpt:output', $text); echo apply_filters('the_excerpt', $text); } } add_filter( 'excerpt_more', function () { return '…'; } );