Memberpress에서 구독 플랜이 있는 사용자에게만 접근 권한 부여

logout_from_discourse() 함수를 그냥 호출하면 되나요, 아니면 그 코드를 전부 복사해야 하나요?