Override the WordPress core function wp_referer_field

wp_referer_field is a function. You cannot treat a function like a hook. That isn’t how hooks work. That is, you can’t hook into a function name. Hooks are intentionally created. (And there are no hooks built into that function)

Secondly, you can’t override a function at all, as a rule. Some few functions in WordPress are wrapped in an if(function_exists('..')) conditional. Those are the exceptions. Those can be replaced by creating a new function of the same name, but not by “hooking” into them.

There may be another way to do what you are trying to do if you were to explain the problem in more detail.

See: