bp_xprofile_field_type_richtext_buttons

The Buddypress xProfile Rich Text Field bp xprofile field type richtext buttons hook.

Description

apply_filters( 'bp_xprofile_field_type_richtext_buttons', (unknown) $buttons ); 

Parameters (1)

0. $buttons (unknown)
The buttons.

Usage

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

Defined (4)

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

/buddypress-xprofile-rich-text-field.php  
  1. 'tinymce' => apply_filters( 'bp_xprofile_field_type_richtext_buttons', $buttons ) 
  1. 'tinymce' => apply_filters( 'bp_xprofile_field_type_richtext_buttons', $buttons ) 
/buddypress-xprofile-rich-text-field-class.php  
  1. 'tinymce' => apply_filters( 'bp_xprofile_field_type_richtext_buttons', $buttons ) 
  1. 'tinymce' => apply_filters( 'bp_xprofile_field_type_richtext_buttons', $buttons )