sanitize_profile_info

The BuddyPress sanitize profile info hook.

Description

apply_filters( 'sanitize_profile_info', (unknown) $post_key, (unknown) $key, (unknown) $post_key ); 

Parameters (3)

0. $post_key (unknown)
The post key.
1. $key (unknown)
The key.
2. $post_key (unknown)
The post key.

Usage

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

Defined (1)

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

/bp-forums/bbpress/profile-edit.php  
  1. $$key = apply_filters( 'sanitize_profile_info', $_POST[$key], $key, $_POST[$key] );