apply_filters( 'display_post_states', string[] $post_states , WP_Post $post )
Filters the default post display states used in the posts list table.
Description Description
Parameters Parameters
- $post_states
-
(string[]) An array of post display states.
- $post
-
(WP_Post) The current post object.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Added the $post parameter. |
2.8.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Second parameter ($post) is type WP_Post, not int.
Feedback
Hi, nice find! Would you like to open a core trac ticket and submit a patch to fix this discrepancy? — By Drew Jaynes —