protected function is_allowed_type($type) { $allowed = array('bbp_topic'); return in_array($type, $allowed); }