Modify a function without editing template
Oviously, you’ll have to edit something if you want to modify it. So, your best course of action is to create a child theme, with its own function file. A filter, as you tried, won’t work, because there is no filter hook in the function that you are trying to modify. What you can do, … Read more