Right now there are no hooks to do that from a plugin and the function that makes the search query itself is not pluggable which means that the only way to achieve that is to hack core files.
Currently there is an open Trac Ticket asking for some kind of hook.
Related Posts:
- add_action hook for links.php page
- How to I prevent WordPress from switching external HTTP links to HTTPS?
- trying to locate the correct file to edit my internal linking anchor tags
- Is there a way to send HTML formatted emails with WordPress’ wp_mail() function?
- Is there a hook that runs after a user logs in?
- WP Cron Doesn’t Execute When Time Elapses
- Why do some hooks not work inside class context?
- Hook after image is uploaded and image sizes generated
- Do WordPress Core Filenames Work as Hooks?
- How to call a REST endpoint when a post is published?
- __NAMESPACE__ with register_activation_hook
- Hook for URL Request
- Hook/notify when any option or setting is added or updated
- Is it possible to save/modify a post without calling the “save_post” action hook?
- Which hooks is this? add_action(‘wp’,
- Generating robots.txt dynamically
- admin_notices after register_uninstall / deactivate_hook
- Hooks are not executing
- add_action on inherit post status
- Why does wp_enqueue_script ignore my ‘wp_head’ hook?
- action lifecycle
- Redirect users on specific post category or category page
- Returning ACF custom field from publish_post
- How to modify an add_action() inside a loop of core function
- Add custom URLs to WordPress’s XML sitemap
- What is the best filter where to use register_block_type?
- How get list all users who edited post?
- Stuck in redirect loop after using wp_login action
- How to change the location of admin notice in html without using Javascript?
- Why doesn’t wp_enqueue_script() work when including a JavaScript file with TEMPLATEPATH?
- How to find hooks as per Just-In-Time approach?
- What are the differences between comment_form_logged_in_after and comment_form_after_fields?
- Detect change to user_meta and retrieve old and new values
- How to check if upload window came from the featured image link?
- Featured Image Action Hook
- How to find a callback attached to a bbpress hook?
- Event Calendar using insert_post_data after save_post and insert_post after post_transition draft_to_schedule
- How to extend custom (non-core) blocks?
- Hooking into the init action will fire it too frequently?
- Is it possible to change image urls by hooks?
- Implement Hooks Using Array
- What hook is used to display the admin_bar on the front end?
- Is there a JavaScript equivalent of get_post_field?
- Adding a hook to the default (page.php) template
- Add action hook into wp_localize_script
- Conditional for autosave or auto draft?
- Using delete_attachment to prevent an attachment not working
- How does do_action( ) works actually?
- How to pass argument to wp_footer hook with data from a template
- Giving the_excerpt in the place of the_content?
- Hook to init or call explicitly within functions.php
- How to add content to the end of a page with a hook?
- Woocommerce table is missing a heading–can I add it by use of a hook?
- register_deactivation_hook argument -> pass arguments in the selected function
- WordPress’s “Text” Format
- run script on publish
- Calling add_action on a filter hook?
- Remove Header and Footer if user is not logged on
- How to use pre_get_posts
- hooks for automatic approve user registration according to data in custom fields
- How to render an element, that was saved as a template, using a hook?
- What is deprecated_argument_run meant to do exactly?
- How do I run an action after a featured image has been selected in the Gutenberg editor?
- How to run a function after wp() in the wp-blog-header.php file?
- WordPress cronjob get scheduled but function does not run
- Notify admin when Custom post meta data gets updated or deletet
- How to add a HTML element in ADMIN edit post window?
- wp query add array by if condition
- Action hook with wrapper html
- Gravity Forms | Form Object is NULL [closed]
- Change status of page after an event (Looking for best practice advice)
- Add action save post when create and publish
- Hooks for Start/End of Batch Plugin Updates in wordpress
- How to load another post if condition is true
- Add a Call to Action Button to WordPress Post Thumbnail
- Struggling with plugin dev basics: add_action
- RTrouble passing arguments to action
- delete_user hook failed
- Which things should be called with `after_setup_theme`?
- Changing header logo href for the checkout page
- Prefixing widget_posts_args Hook
- Can’t get ID of post that relates to the comment
- Updating user meta data from external link, user not logged in
- adding wordpress yoast SEO canonical url from “transition_post_status” hook
- Remove lines from RSS Feed
- Cookie cant be read even cookie is present
- Is there a hook that triggers when grant secondary user role in WordPress?
- How can I insert custom html code inside a div dynamically?
- How to trigger click events using hooks
- remove_action() hook not working
- How WordPress understands what do with the (all) key in the $wp_filter array? [duplicate]
- WP-Automatic to run publish hooks
- Hide post completely and still reach it via cURL
- Problem in register activation hook and Copying folder
- Why does hook priority affects admin menu permission error?
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- How do I change TinyMCE button “i” to create a i tag rather than em? [duplicate]
- add_action failed to display function by a plugin
- Use wordpress search hooks to search a second database
- Why callback function is not working in wp_head hook?