bb_bozo_post_del_class

The BuddyPress bb bozo post del class function.

Description

bb_bozo_post_del_class( $classes, $post_id, $post ); 

Parameters (3)

0. $classes
The classes.
1. $post_id
The post id.
2. $post
The post.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-plugins/bozo.php  
  1. function bb_bozo_post_del_class( $classes, $post_id, $post ) 
  2. if ( isset( $post->post_status ) && 1 < $post->post_status && bb_current_user_can('browse_deleted') ) { 
  3. if ( $classes ) { 
  4. return $classes . ' bozo'; 
  5. return 'bozo'; 
  6. return $classes;