Warning: This function has been deprecated.

bp_blogs_catch_transition_post_status( string $new_status, string $old_status, object $post )

Detect a change in post status, and initiate an activity update if necessary.


Description Description

Posts get new activity updates when (a) they are being published, and (b) they have not already been published. This enables proper posting for regular posts as well as scheduled posts, while preventing post bumping.

See #4090, #3746, #2546 for background.


Parameters Parameters

$new_status

(Required) New status for the post.

$old_status

(Required) Old status for the post.

$post

(Required) Post data.


Top ↑

Source Source

File: bp-core/deprecated/2.2.php

function bp_blogs_catch_transition_post_status( $new_status, $old_status, $post ) {
	_deprecated_function( __FUNCTION__, '2.2', 'bp_activity_catch_transition_post_type_status()' );
	bp_activity_catch_transition_post_type_status( $new_status, $old_status, $post );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 This function has been deprecated.
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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