Wordpress custom excerpt character based - tweak
<p>after some research and writing customized excerpt function I was able to solve my problem partially. What I wanted to achive while writing chracter based excerpt function was to end every excerpt in the same place... However it's still can't make it. Can you please take a look at the function, maybe you will have and idea what could be improved.</p>

<p><a href="https://i.stack.imgur.com/WjcN3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WjcN3.png" alt="My aim was to create excerpt always same lenght despite the content"></a></p>

<pre><code>function get_excerpt(){
$excerpt = get_the_content();
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$excerpt = substr($excerpt, 0, 480);
$excerpt = substr($excerpt, 0, strrpos($excerpt, ' ')); // End with full word
$excerpt = $excerpt.'...';
return $excerpt;
}
</code></pre>