xprofile_allowed_tags

Filters the allowed tags for use within xprofile_filter_kses().

Description

apply_filters( 'xprofile_allowed_tags', (array) $xprofile_allowedtags, (BP_XProfile_ProfileData) $data_obj ); 

Parameters (2)

0. $xprofile_allowedtags (array)
Array of allowed tags for profile field values.
1. $data_obj (BP_XProfile_ProfileData)
The BP_XProfile_ProfileData object.

Usage

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

Defined (1)

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

/bp-xprofile/bp-xprofile-filters.php  
  1. $xprofile_allowedtags = apply_filters( 'xprofile_allowed_tags', $xprofile_allowedtags, $data_obj );