trim_words($length); } foreach (wp_extract_urls($text) as $url) { $text = str_replace($url, '', $text); } $text = apply_filters('blocksy:excerpt:output', $text); add_filter( 'excerpt_more', 'blocksy_excerpt_more', PHP_INT_MAX ); echo apply_filters('the_excerpt', $text); remove_filter( 'excerpt_more', 'blocksy_excerpt_more', PHP_INT_MAX ); } }