bpbbpst_available_support_status

The Buddy-bbPress Support Topic bpbbpst available support status hook.

Description

apply_filters( 'bpbbpst_available_support_status', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'topic-not-resolved' => array( 'sb-caption' => __( 'Not resolved', 'buddy-bbpress-support-topic' ), 'value' => 1, 'prefix-title' => __( '[Support request] ', 'buddy-bbpress-support-topic' ), 'admin_class' => 'waiting', 'dashicon' => array( 'class' => 'bpbbpst-dashicon-no', 'content' => '"\f158"' ), ), 'topic-resolved' => array( 'sb-caption' => __( 'Resolved', 'buddy-bbpress-support-topic' ), 'value' => 2, 'prefix-title' => __( '[Resolved] ', 'buddy-bbpress-support-topic' ), 'admin_class' => 'approved', 'dashicon' => array( 'class' => 'bpbbpst-dashicon-yes', 'content' => '"\f147"' ), ), 'topic-not-support' => array( 'sb-caption' => __( 'Not a support topic', 'buddy-bbpress-support-topic' ), 'value' => 0, 'prefix-title' => '', 'admin_class' => 'waiting', ), )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'bpbbpst_available_support_status', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bpbbpst_available_support_status callback 
  2. function filter_bpbbpst_available_support_status( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bpbbpst_available_support_status', 'filter_bpbbpst_available_support_status', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bpbbpst_available_support_status', 'filter_bpbbpst_available_support_status', 10, 1 ); 

Defined (1)

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

/buddy-bbpress-support-topic.php  
  1. $this->support_status = apply_filters( 'bpbbpst_available_support_status', array(