Error thrown

Call to undefined function is_post_status_viewable()