bb_ksd_add_post_status_to_forms

The BuddyPress bb ksd add post status to forms function.

Description

bb_ksd_add_post_status_to_forms( $stati, $type ); 

Parameters (2)

0. $stati
The stati.
1. $type
The type.

Usage

  1. if ( !function_exists( 'bb_ksd_add_post_status_to_forms' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-plugins/akismet.php'; 
  3.  
  4. // The stati. 
  5. $stati = null; 
  6.  
  7. // The type. 
  8. $type = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bb_ksd_add_post_status_to_forms($stati, $type); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-plugins/akismet.php  
  1. function bb_ksd_add_post_status_to_forms( $stati, $type ) 
  2. if ( 'post' === $type ) { 
  3. $stati['2'] = __( 'Spam' ); 
  4. return $stati;