WordPress.org

Make WordPress Core

Timestamp:
10/17/2018 05:02:04 PM (3 years ago)
Author:
danielbachhuber
Message:

REST API: Introduce controller for searching across post types.

Introduces a WP_REST_Search_Controller class which registers a /wp/v2/search endpoint. Search types are handled by extending WP_REST_Search_Handler. The default search type is WP_REST_Post_Search_Handler but can be filtered by plugins or a theme.

Props danielbachhuber, flixos90, pento, rmccue.
Fixes #39965.

Location:
branches/5.0/src/wp-includes/rest-api/search
Files:
2 added

Note: See TracChangeset for help on using the changeset viewer.