Docs: Miscellaneous docblock corrections and improvements.

See #51800.

git-svn-id: https://develop.svn.wordpress.org/trunk@49942 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-01-07 14:15:27 +00:00
parent 7c0d1208fb
commit de330964b1
6 changed files with 21 additions and 14 deletions
@@ -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.