Signature, return type and hooks compared across 5 parsed releases.
5.6.0
The $id parameter can accept a string.from the docblock
5.0.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/rest-api/search/class-wp-rest-search-handler.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.