ap_user_can_view_private_post()

Function: Check if user have permission to view post.

AnsPress_BP_Hooks::init()

Method: Initialize the class