wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
is_post_type_viewable › Hooks de Filtros WordPress
Desde5.9.0
Obsoleton/a
› apply_filters( 'is_post_type_viewable', $is_viewable, $post_type )
| Parâmetros: (2) |
|
| Definido em: |
|
| Codex: |
Filters whether a post type is considered "viewable".
The returned filtered value must be a boolean type to ensure `is_post_type_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.Funções relacionadas: is_post_type_viewable, is_post_status_viewable, is_post_publicly_viewable, is_post_type_hierarchical, is_post_type_archive, is_post_embeddable
Hooks relacionados: is_post_status_viewable, is_post_embeddable, edit_-post_type-_per_page, register_post_type_args, post_type_link