bb_bozo_delete_post

The BuddyPress bb bozo delete post function.

Description

bb_bozo_delete_post( $post_id, $new_status, $old_status ); 

Parameters (3)

0. $post_id
The post id.
1. $new_status
The new status.
2. $old_status
The old status.

Usage

  1. if ( !function_exists( 'bb_bozo_delete_post' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-plugins/bozo.php'; 
  3.  
  4. // The post id. 
  5. $post_id = null; 
  6.  
  7. // The new status. 
  8. $new_status = null; 
  9.  
  10. // The old status. 
  11. $old_status = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_bozo_delete_post($post_id, $new_status, $old_status); 
  15.  

Defined (1)

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

/bp-forums/bbpress/bb-plugins/bozo.php  
  1. function bb_bozo_delete_post( $post_id, $new_status, $old_status ) { 
  2. $bb_post = bb_get_post( $post_id ); 
  3. if ( 1 < $new_status && 2 > $old_status ) 
  4. bb_bozon( $bb_post->poster_id, $bb_post->topic_id ); 
  5. elseif ( 2 > $new_status && 1 < $old_status ) 
  6. bb_fermion( $bb_post->poster_id, $bb_post->topic_id );