Core Function
View Source on Trac ↗ _post_states()
_post_states( mixed $post, mixed $display = true ) Echoes or returns the post states as HTML.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post WP_Post | The post to retrieve states for. Required |
| bool | $display Optional. Whether to display the post states as an HTML string. Default true. Required |
Return Value
(string)
Post states string.
Function Information
Since Version
2.7.0
Source File
wp-admin/includes/template.php
Advertisement