Browsing hooks for feature: Jetpack Search


    hook (action): Fires after a search query request has failed

    Source: jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php:429


    hook (action): Fires after a search request has been performed.<p>Includes the following info in the $query parameter:</p> <p>array args Array of Elasticsearch arguments for the search array response Raw API response, JSON decoded int response_code HTTP response code of the request float elapsed_time Roundtrip time of the search request, in milliseconds float es_time Amount of time Elasticsearch spent running the request, in milliseconds string url API url that was queried</p>

    Source: jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php:417


    hook (filter): Modify the search query parameters, such as controlling the post_type.<p>These arguments are in the format of WP_Query arguments</p> View Example

    Source: jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php:558


    hook (filter): Modify the underlying ES query that is passed to the search endpoint. The returned args must represent a valid ES query<p>This filter is harder to use if you're unfamiliar with ES, but allows complete control over the query</p>

    Source: jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php:596


    hook (filter): Modify the query var to use for a given taxonomy

    Source: jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php:1733