Is it possible to add a new filter with in built php function trim to use the second parameter of this function?
I have some merchants where they always append the category name of the product. This is good, except when this category is empty. When this happens, I have strange names:
Good: Google Home - Electronics
Bad: Google Home -
So the filter only need to apply: trim($name, " - ");
I want to have the possibility to specify the second parameter in the filter, because other merchants use the '/'