This is a bit tricky. We hook the function into two different actions. The first action passes two arguments, the second one only one. Our callback always takes two arguments, but if only one is passed, the second one is predefined with an empty string.