apply_filters( 'bp_activity_list_table_can_comment', bool $can_comment, array $item )

Filters if an activity item can be commented on or not.


Parameters Parameters

$can_comment

(bool) Whether an activity item can be commented on or not.

$item

(array) An array version of the BP_Activity_Activity object.


Source Source

File: bp-activity/classes/class-bp-activity-list-table.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Add a second parameter to include the activity item into the filter.
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.