On this page
apply_filters( 'display_post_states', string[] $post_states, WP_Post $post )
Filters the default post display states used in the posts list table.
Parameters
$post_statesstring[]-
An array of post display states.
$postWP_Post-
The current post object.
Source
File: wp-admin/includes/template.php. View all references
return apply_filters( 'display_post_states', $post_states, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_post_states() wp-admin/includes/template.php | Retrieves an array of post states from a post. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/display_post_states