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 Description

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

Top ↑

Parameters Parameters


(bool) Whether or not to continue.


(int) ID of the current site.


(int) ID of the current post being commented.


(int) ID of the current user.


(int) ID of the current comment being posted.

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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