Warning: This function has been deprecated.
bp_blogs_record_comment( int $comment_id, bool|string $is_approved = true )
Record a new blog comment in the BuddyPress activity stream.
Description Description
Only posts the item if blog is public and post is not password-protected.
Parameters Parameters
- $comment_id
-
(Required) ID of the comment being recorded.
- $is_approved
-
(Optional) The $is_approved value passed to the 'comment_post' action. Default: true.
Default value: true
Return Return
(bool|object|null) Returns false on failure, the comment object on success.
Source Source
File: bp-core/deprecated/2.5.php
function bp_blogs_record_comment( $comment_id, $is_approved = true ) { _deprecated_function( __FUNCTION__, '2.5.0', 'bp_activity_post_type_comment()' ); bp_activity_post_type_comment( $comment_id, $is_approved ); }
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |