Warning: This function has been deprecated.

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

Record a new blog post in the BuddyPress activity stream.


Description Description


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


Top ↑

Return Return

(bool|null) Returns false on failure.


Top ↑

Source Source

File: bp-core/deprecated/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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.