How to check if page id(SomeID)
is actually published?
3 s
You can use 'publish' === get_post_status( $id )
, where $id
could be the current page ID retrieved via get_the_ID()
or any other.