/** * Sets the length for the excerpt, * * @param string $new_length * @return void */ public static function length($new_length = 55) { ts_Excerpt::$length = $new_length; add_filter('excerpt_length', 'ts_Excerpt::new_length'); ts_Excerpt::output(); }