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.


Top ↑

Source Source

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


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.