bpbbpst_support_topic_template

The Buddy-bbPress Support Topic bpbbpst support topic template hook.

Description

apply_filters( 'bpbbpst_support_topic_template', (unknown) $content, (unknown) $forum_id ); 

Parameters (2)

0. $content (unknown)
The content.
1. $forum_id (unknown)
The forum id.

Usage

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

Defined (1)

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

/includes/functions.php  
  1. return apply_filters( 'bpbbpst_support_topic_template', $content, $forum_id );