bpbbpst_add_support_mention

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

Description

apply_filters( 'bpbbpst_add_support_mention', (string) $span_class_bbp_st_topic_support_sanitize_html_class_status_class_status_prefix_title_span, (unknown) $forum_id, (unknown) $forum_status, (unknown) $topic_id ); 

Parameters (4)

0. $span_class_bbp_st_topic_support_sanitize_html_class_status_class_status_prefix_title_span — Optional. (string) => ''. $status['prefix-title'] .''
The span class bbp st topic support sanitize html class status class status prefix title span.
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. $span_class_bbp_st_topic_support_sanitize_html_class_status_class_status_prefix_title_span = apply_filters( 'bpbbpst_add_support_mention', $span_class_bbp_st_topic_support_sanitize_html_class_status_class_status_prefix_title_span, $forum_id, $forum_status, $topic_id ); 
  2.  
  3. if ( !empty( $span_class_bbp_st_topic_support_sanitize_html_class_status_class_status_prefix_title_span ) ) { 
  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 callback 
  2. function filter_bpbbpst_add_support_mention( $span_class_bbp_st_topic_support_sanitize_html_class_status_class_status_prefix_title_span, $forum_id, $forum_status, $topic_id ) { 
  3. // make filter magic happen here... 
  4. return $span_class_bbp_st_topic_support_sanitize_html_class_status_class_status_prefix_title_span
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bpbbpst_add_support_mention', 'filter_bpbbpst_add_support_mention', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bpbbpst_add_support_mention', 'filter_bpbbpst_add_support_mention', 10, 4 ); 

Defined (1)

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

/includes/functions.php  
  1. $output = apply_filters(