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.


Parameters 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 Source

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

View on Trac



Top ↑

Changelog 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.