bpbbpst_support_statistics

The Buddy-bbPress Support Topic bpbbpst support statistics hook.

Description

apply_filters( 'bpbbpst_support_statistics', (unknown) $support_stats, (unknown) $args ); 

Parameters (2)

0. $support_stats (unknown)
The support stats.
1. $args (unknown)
The args.

Usage

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

Defined (1)

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

/includes/functions.php  
  1. return apply_filters( 'bpbbpst_support_statistics', $support_stats, $args );