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

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

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

Changelog

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

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.