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

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

Parameters Parameters


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


(string) Current activity type being checked on.

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
2.5.0 Use $activity_type instead of $activity_name for the second parameter.
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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