bp_blogs_transition_activity_status

When a blog comment status transition occurs, update the relevant activity's status.

Description

bp_blogs_transition_activity_status( (string) $new_status, (string) $old_status, (object) $comment ); 

Parameters (3)

0. $new_status (string)
New comment status.
1. $old_status (string)
Previous comment status.
2. $comment (object)
Comment data.

Usage

  1. if ( !function_exists( 'bp_blogs_transition_activity_status' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/2.5.php'; 
  3.  
  4. // New comment status. 
  5. $new_status = ''; 
  6.  
  7. // Previous comment status. 
  8. $old_status = ''; 
  9.  
  10. // Comment data. 
  11. $comment = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bp_blogs_transition_activity_status($new_status, $old_status, $comment); 
  15.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/2.5.php  
  1. function bp_blogs_transition_activity_status( $new_status, $old_status, $comment ) { 
  2. _deprecated_function( __FUNCTION__, '2.5.0', 'bp_activity_transition_post_type_comment_status()' ); 
  3. bp_activity_transition_post_type_comment_status( $new_status, $old_status, $comment );