Docs: Improve the hook doc for the `get_post_status` filter, introduced in [35233].

Also adds a missing parameter description for `$post`.

See #23458. See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@35240 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-10-17 14:23:05 +00:00
parent 5b5b67ee31
commit 0bb4a1bdd0
1 changed files with 3 additions and 2 deletions

View File

@ -574,11 +574,12 @@ function get_post_status( $ID = '' ) {
}
/**
* Filters the post status.
* Filter the post status.
*
* @since 4.4.0
*
* @param string $post->post_status The status of the post.
* @param string $post_status The post status.
* @param WP_Post $post The post object.
*/
return apply_filters( 'get_post_status', $post->post_status, $post );
}