bpbbpst_add_support_mention_filter

The Buddy-bbPress Support Topic bpbbpst add support mention filter hook.

Description

apply_filters( 'bpbbpst_add_support_mention_filter', (string) $var, (unknown) $forum_id, (unknown) $forum_status, (unknown) $topic_id ); 

Parameters (4)

0. $var (string) => ''
The var.
1. $forum_id (unknown)
The forum id.
2. $forum_status (unknown)
The forum status.
3. $topic_id (unknown)
The topic id.

Usage

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

Defined (1)

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

/includes/functions.php  
  1. $output = apply_filters( 'bpbbpst_add_support_mention_filter', '', $forum_id, $forum_status, $topic_id );