apply_filters( 'bp_activity_can_comment', bool $can_comment, string $activity_type )

Filters whether a comment can be made on an activity item.

Description

Parameters

$can_comment

(bool) Status on if activity can be commented on.

$activity_type

(string) Current activity type being checked on.

Source

File: bp-activity/bp-activity-template.php

Changelog

Changelog
Version Description
BuddyPress 2.5.0 Use $activity_type instead of $activity_name for the second parameter. BuddyPress 2.5.0 Use $activity_type instead of $activity_name for the second parameter.
BuddyPress 1.5.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.