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:
Related Posts:
- Accepted arguments value in hook functions
- Which action hook to use for function?
- Modify a function without editing template
- Insert Content Before div#main from the functions.php File
- Save_post – Warning: Cannot modify header information
- How Do I Unhook This Parent Theme Function?
- Issues with title-tag and document_title_parts
- Remove Actions/Filters added via Anonymous Functions
- Define custom Page Template without its own .php file
- How to influence the information displayed on widget inside wp-admin
- Extract image from content and set it as the featured image
- How to restrict actions and filters “properly” by conditions
- Add action hook conditionally – only when home.php in use
- Using add_filter() in Widgets
- How can I tell if I’m on a login page? [duplicate]
- Convert hyphen to underscore in permalinks
- Remove Page Title from Static Frontpage
- How to hook into the quick edit action?
- WooCommerce add_action hook results in 500 error
- How to update feed only 2-3 times a week (for Feedburner email)?
- Gravity Forms field entries into wp_query loop [closed]
- How would go about if I just want a temporary function?
- Get current page_id before loop, in functions.php
- Don’t delete a page if it holds users
- How do I add Bootstrap and LESS to my migrated WordPress site?
- Passing values from a widget to a function within a plugin
- Which action does wp_update_user triggers?
- How can I get my Script to work on the Login page?
- Trigger a custom function when option are saved in admin area
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- Replace a menu with widget or a custom template file programmatically
- jQuery does not work
- How to edit the Tags within the image file URLs?
- Can’t properly set the_title add_filter to show short_URL
- How to add_filter html template to middle of content
- (Woocommerce) Order by price when entering specific category
- Is there a way to prevent a function/method from being called outside a specific hook?
- Call to undefined function is_home() or any conditional tags
- Possible to hook into Media Library preview File column and use a custom image?
- Adding code before post title with the_title produces weird results
- Add back in child theme what the parent theme removed with remove_action
- login_headertitle is deprecated since version 5.2.0
- Changing where my author box is printed
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Add Adsense code between job listings – wp job manager plugin
- Replace admin header logo with an image
- Changing the text of Upload/Insert on Posts and Pages Screen
- Does hook have an effect on increasing the page load?
- What is the earliest Hook a Script can use?
- custom error message for empty username and password using authenticate filter not working
- post value to function with Ajax and jQuery
- Use action, filter, or hook to append HTML to WordPress plugin function
- Which method is more correct for removing WooCommerce Extensions menu item?
- WordPress hooks to call a function inside a construct
- previous_post_link inside of a function?
- Settings in functions.php used by a plugin
- Force resize for all video content
- add query string to all pages after user logged in
- delete_term is not working properly with add_action()
- Is there a hook that I can use when a fatal error occurs?
- Check if post is being published for the first time, or is an already published post being updated
- WordPress Theme Update Action?
- Is there a hook or function I can use to display all theme files being used on a current page?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Implementing DNS Prefetching with WordPress
- Hook into admin post list page
- Set default options for inserting media
- Use external link in the add sub menu
- Override a class function to include a custom template
- Post Pagination Showing Same Posts Every Page
- WordPress after content Hook & external template part
- str_replace function in theme
- Inserting a functions output after the content
- Handling Body class based on Template
- Is possible add icon in title posts only in specific tag?
- WordPress Gravatar filter is removing my custom attributes
- Is there an alternative to get_template_directory_uri()?
- Modify custom field input data before creating a new post
- Footer disappears when using the_content ( )
- woocommerce change currency per category [closed]
- Comment search plugin
- WordPress class, using add_action to call member function does not work
- Why does re-using this function not work? [closed]
- How to remove a class function from a plugin by using remove_action()?
- Hook for altering the content of all wp mails
- Must filter functions receive all arguments passed to them?
- Problem in using Customizer
- Conditional custom menu?
- Get URLs for AJAX Filter Checkboxes WordPress
- Display custom product option in admin order details
- style_loader_tag not changing stylesheet to preload
- Filter works on last selection but no others
- How do I trigger WP CLI DB export using a PHP function?
- Prevent function from triggering on current page
- Assign IDs to headings in ACF using functions.php
- Redirect specific author posts to another url
- True email confirmation for registration (keeping unvalidated users from user table)
- Fatal error: Call to undefined function add_action() – an untouched problem
- Init hook for header send
- How to add custom checkout field in user details mail template