wpseek.com
A WordPress-centric search engine for devs and theme authors
is_post_status_viewable › WordPress Filter Hooks
Since5.9.0
Deprecatedn/a
› apply_filters( 'is_post_status_viewable', $is_viewable, $post_status )
| Parameters: (2) |
|
| Defined at: |
|
| Codex: |
Filters whether a post status is considered "viewable".
The returned filtered value must be a boolean type to ensure `is_post_status_viewable()` only returns a boolean. This strictness is by design to maintain backwards-compatibility and guard against potential type errors in PHP 8.1+. Non-boolean values (even falsey and truthy values) will result in the function returning false.Related Functions: is_post_status_viewable, is_post_type_viewable, is_post_publicly_viewable, get_post_status_object, get_post_statuses, is_taxonomy_viewable
Related Hooks: is_post_type_viewable, get_post_status, is_post_embeddable, display_post_states, post_states_html