Filter an WordPress Function in (general-template.php)
In short, no, neither of your two alternatives is “possible” in the sense of able or at all likely to do what you seem to want it to do. There is no get_header filter – so the first alternative won’t do anything. The second one might do something, depending on what your function contained, but … Read more