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
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |