Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_rest_search_handlers ›

Da5.0.0
Deprecaton/a
apply_filters( 'wp_rest_search_handlers', array( new WP_REST_Post_Search_Handler()
Parametri:
  • (array) $search_handlers List of search handlers to use in the controller. Each search handler instance must extend the `WP_REST_Search_Handler` class. Default is only a handler for posts.
    Richiesto:
Definito a:
Codex:

Filters the search handlers to use in the REST search controller.





Sorgenti

$search_handlers = apply_filters( 'wp_rest_search_handlers', array( new WP_REST_Post_Search_Handler() ) );