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.

Description

Parameters

$value

(bool) True to override BuddyPress management.

$post_type

(string) The post type name.

$activity_id

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

$new_status

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

$old_status

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

$comment

(WP_Comment) Comment data.

Source

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

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.