SearchWP

Hook Tags: query

Using this hook you can directly manipulate the search query itself.

Control whether AND logic is performed. Note: By default AND logic will be skipped if the token threshold is breached. The default threshold is 5 but can be customized with the searchwp\query\logic\and\token_threshold hook.

Control whether SearchWP loads all Entry Attribute data for search results. Note: When this functionality is enabled, all registered Attribute data will be loaded. See also searchwp\query\result\load_data

Control whether SearchWP loads applicable Entry Attribute data for search results. Note: When this functionality is enabled, only the Attribute data added to the Engine will be loaded. See also searchwp\query\result\load_data\all_attributes

Customize the \SearchWP\Mods applied during a search. Note: There are some internal \SearchWP\Mods that may be present for the query. This hook does not allow filtration of those mission critical \SearchWP\Mods, only user-defined \SearchWP\Mods. See also searchwp\query\do_source_db_where for internals.

Want to make your search awesome right now?

More than 30,000 sites have chosen SearchWP!

You can utilize all of the content that’s gone unrecognized by native WordPress keyword search instantly with SearchWP.

Get SearchWP for just $99

  • Committed Support
    If you need help, support is fast, friendly, and here for you
  • Streamlined Setup
    Installation and setup that’s optimized for speed
  • Great Documentation
    Helpful, clear, and usable documentation is a priority

See what SearchWP customers have to say

  • “Dropping this into our rather clunky site made the search work excellently. I like being able to adjust weights of different taxonomies, etc., and integrating with FacetWP. This is one of the better plugins we’ve paid for.”

  • “SearchWP is a great plugin that is easy to use & provides a lot of utility. I have also been especially impressed with their level of support. They responded very quickly & helped me sort my issue in absolutely no time. I would definitely recommend.”

  • “SeachWP is easy to set up and has all the customizing I need to help my clients deliver a better search experience than the native WP search functionality. It also has great analytics that help their content strategy.”

[wpforms id="3080"]