Why does do_action pass a blank string as the first parameter if no $arg is set?
When we fire up: do_action( ‘foo’ ); we are actually calling: do_action( ‘foo’, ” ); That’s because how it’s defined; With the empty string as the default input argument: function do_action($tag, $arg = ”) { // … } So the action’s callback get’s the empty string as it’s first input argument. This has been like … Read more