pre_sanitize_with_dashes

The BuddyPress pre sanitize with dashes hook.

Description

apply_filters( 'pre_sanitize_with_dashes', (unknown) $text, (unknown) $text, (unknown) $length ); 

Parameters (3)

0. $text (unknown)
The text.
1. $text (unknown)
The text.
2. $length (unknown)
The length.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-formatting.php  
  1. $text = apply_filters( 'pre_sanitize_with_dashes', $text, $_text, $length );