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 all references
return apply_filters( 'get_post_status', $post_status, $post );
Changelog
Version | Description |
---|---|
5.7.0 | The attachment post type is now passed through this filter. |
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example: Changed post status of post id 1