How do I filter get_the_excerpt() but keep all of its functionality intact?
In spite of what the Codex says, since WP 4.5, where the addition of the post argument to the function get_the_excerpt was added, this filter takes two arguments. The second argument is the post object whose excerpt you are manipulating. So the function still works in the loop without an explicit post, we make the … Read more