This function has been deprecated. BuddyPress 2.2.0 instead.
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
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
- $new_status
-
(Required) New status for the post.
- $old_status
-
(Required) Old status for the post.
- $post
-
(Required) Post data.
Source
File: bp-core/deprecated/buddypress/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 ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.2.0 | BuddyPress 2.2.0 |
BuddyPress 2.0.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.