This function has been deprecated. BuddyPress 2.2.0 instead.

bp_blogs_record_post( int $post_id, object $post, int $user_id )

Record a new blog post in the BuddyBoss activity feed.

Description

Parameters

$post_id

(Required) ID of the post being recorded.

$post

(Required) The WP post object passed to the 'save_post' action.

$user_id

(Optional) The user to whom the activity item will be associated. Defaults to the post_author.

Return

(bool|null) Returns false on failure.

Source

File: bp-core/deprecated/buddypress/2.2.php

function bp_blogs_record_post( $post_id, $post, $user_id = 0 ) {
	_deprecated_function( __FUNCTION__, '2.2', 'bp_activity_post_type_publish()' );
	bp_activity_post_type_publish( $post_id, $post, $user_id );
}

Changelog

Changelog
Version Description
BuddyPress 2.2.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.