apply_filters( 'bp_activity_pre_transition_post_type_comment_status', bool $value, string $post_type, int $activity_id, string $new_status, string $old_status, WP_Comment $comment )

Leave a chance to plugins to manage activity comments differently.




(bool) True to override BuddyPress management.


(string) The post type name.


(int) The post type activity (0 if not found).


(string) The new status of the post type comment.


(string) The old status of the post type comment.


(WP_Comment) Comment data.


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


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.