W3cubDocs

/WordPress

apply_filters( 'get_post_status', string $post_status, WP_Post $post )

Filters the post status.

Parameters

$post_status

(string) The post status.

$post

(WP_Post) The post object.

Source

File: wp-includes/post.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_post_status