Docs: Miscellaneous docblock corrections and improvements.

See #51800.
Built from https://develop.svn.wordpress.org/trunk@49942


git-svn-id: http://core.svn.wordpress.org/trunk@49641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn
2021-01-07 14:17:11 +00:00
parent c38bdce55b
commit f0078d043e
7 changed files with 22 additions and 15 deletions

View File

@@ -1860,10 +1860,16 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
}
/**
* Filters the post data for a response.
* Filters the post data for a REST API response.
*
* The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug.
*
* Possible filter names include:
*
* - `rest_prepare_post`
* - `rest_prepare_page`
* - `rest_prepare_attachment`
*
* @since 4.7.0
*
* @param WP_REST_Response $response The response object.