bb_apply_filters

The BuddyPress bb apply filters function.

Description

bb_apply_filters( $tag, $string, (constant) $filter = true ); 

Parameters (3)

0. $tag
The tag.
1. $string
The string.
2. $filter — Optional. (constant) => true
The filter.

Usage

  1. if ( !function_exists( 'bb_apply_filters' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The tag. 
  5. $tag = null; 
  6.  
  7. // The string. 
  8. $string = null; 
  9.  
  10. // The filter. 
  11. $filter = true; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_apply_filters($tag, $string, $filter); 
  15.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_apply_filters($tag, $string, $filter = true) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'apply_filters'); 
  3. $args = func_get_args(); 
  4. return call_user_func_array('apply_filters', $args);