Filter hook 'display_post_states'
in WP Core File wp-admin/includes/template.php at line 2350
Description
Filters the default post display states used in the posts list table. are used within the filter, their existence should be checked with `function_exists()` before being used.
Occurrences
Filename |
Line Number |
wp-admin/includes/template.php |
2350 |
Parameters
Type |
Name |
Description |
string[] |
$post_states |
An array of post display states. |
WP_Post |
$post |
The current post object. |
PHP Doc
/**
* Filters the default post display states used in the posts list table.
*
* @since 2.8.0
* @since 3.6.0 Added the `$post` parameter.
* @since 5.5.0 Also applied in the Customizer context. If any admin functions
* are used within the filter, their existence should be checked
* with `function_exists()` before being used.
*
* @param string[] $post_states An array of post display states.
* @param WP_Post $post The current post object.
*/