is_post_publicly_viewable


is_post_publicly_viewable ( $post = null )

Parameters:
  • (int|WP_Post|null) post Optional. Post ID or post object. Defaults to global $post.
Returns:
  • (bool) Whether the post is publicly viewable.
Defined at:

Description

Determines whether a post is publicly viewable.Posts are considered publicly viewable if both the post status and post type are viewable.

Related Functions

is_term_publicly_viewable, is_post_type_viewable, is_post_status_viewable, is_taxonomy_viewable, _show_post_preview

Top Google Results

User discussions

wpseek mobile