bb_bozo_pre_post_status

The BuddyPress bb bozo pre post status function.

Description

bb_bozo_pre_post_status( $status, $post_id, $topic_id ); 

Parameters (3)

0. $status
The status.
1. $post_id
The post id.
2. $topic_id
The topic id.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-plugins/bozo.php  
  1. function bb_bozo_pre_post_status( $status, $post_id, $topic_id ) { 
  2. if ( !$post_id && bb_current_user_is_bozo() ) 
  3. $status = 2; 
  4. elseif ( bb_current_user_is_bozo( $topic_id ) ) 
  5. $status = 2; 
  6. return $status;