apply_filters( 'bp_activity_can_comment', bool $can_comment , string $activity_type )
Filters whether a comment can be made on an activity item.
Parameters Parameters
- $can_comment
-
(bool) Status on if activity can be commented on.
- $activity_type
-
(string) Current activity type being checked on.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Use $activity_type instead of $activity_name for the second parameter. |
1.5.0 | Introduced. |