function bp_core_check_notification_access($user_id, $notification_id) { if (!BP_Core_Notification::check_access($user_id, $notification_id)) { return false; } return true; }