Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @jg-visual

    When integrating with the “Use Algolia with the native WordPress search template” search page setting, we integrate in with the pre_get_posts hook and insert Algolia’s determined object/post IDs into the post__in parameter for WP_Query. We don’t adjust anything directly with the REST API endpoint. However, if that endpoint ultimately uses WP_Query, then I could see it feeling like we’re amending the REST API endpoint.

    Thread Starter Jonathan Goldford

    (@jg-visual)

    Perfect, that’s helpful to know. It sounds like the plugin might modify the REST API responses, but it depends on how WordPress handles those requests.

    Thanks a ton for getting back to me so quickly.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Automatically Modify WordPress REST API Search Endpoint?’ is closed to new replies.