apply_filters( "bp_activity_{$post_type}_pre_comment", bool $value, int $blog_id, int $post_id, int $user_id, int $comment_id )

Filters whether or not to post the activity about the comment.

Description

This is a variable filter, dependent on the post type, that lets components or plugins bail early if needed.

Parameters

$value

Whether or not to continue.

$blog_id

ID of the current site.

$post_id

ID of the current post being commented.

$user_id

ID of the current user.

$comment_id

ID of the current comment being posted.

Source

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

Changelog

Changelog
Version Description
BuddyPress 2.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.