bpbbpst_forum_support_settings

Displays the available 3 options for forum support settings.

Description

(string) apply_filters( 'bpbbpst_forum_support_settings', (callback) $array ); 

Returns (string)

html list of options

Parameters (1)

0. $array — Optional. (callback) => array( 'bpbbpst_forum_settings_yes' => array( 'value' => 1, 'label' => __( 'Leave users mark topics of this forum as support ones', 'buddy-bbpress-support-topic' ) ), 'bpbbpst_forum_settings_only' => array( 'value' => 2, 'label' => __( 'This forum is dedicated to support, all topics will be marked as support ones.', 'buddy-bbpress-support-topic' ) ), 'bpbbpst_forum_settings_no' => array( 'value' => 3, 'label' => __( 'This forum does not accept support topics', 'buddy-bbpress-support-topic' ) ), )
The previously saved option if any

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'bpbbpst_forum_support_settings', $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_forum_support_settings callback 
  2. function filter_bpbbpst_forum_support_settings( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bpbbpst_forum_support_settings', 'filter_bpbbpst_forum_support_settings', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bpbbpst_forum_support_settings', 'filter_bpbbpst_forum_support_settings', 10, 1 ); 

Defined (1)

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

/includes/functions.php  
  1. $forum_support_settings = apply_filters( 'bpbbpst_forum_support_settings', array(