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