apply_filters( 'bp_activity_list_table_can_comment', bool $can_comment , array $item )
Filters if an activity item can be commented on or not.
Description Description
Parameters Parameters
- $can_comment
-
Whether an activity item can be commented on or not.
- $item
-
An array version of the BP_Activity_Activity object.
Source Source
File: bp-activity/classes/class-bp-activity-list-table.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Add a second parameter to include the activity item into the filter. |
2.0.0 | Introduced. |