This function has been deprecated. BuddyPress 2.5.0 instead.

bp_blogs_record_comment( int $comment_id, bool|string $is_approved = true )

Record a new blog comment in the BuddyBoss activity feed.

Description

Only posts the item if blog is public and post is not password-protected.

Parameters

$comment_id

(int) (Required) ID of the comment being recorded.

$is_approved

(bool|string) (Optional) The $is_approved value passed to the 'comment_post' action. Default: true.

Default value: true

Return

(bool|object|null) Returns false on failure, the comment object on success.

Source

File: bp-core/deprecated/buddypress/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
BuddyPress 2.5.0 Introduced.

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.