bp_xprofile_field_type_textarea_editor_args

Filters the arguments passed to `wp_editor()` in richtext xprofile fields.

Description

apply_filters( 'bp_xprofile_field_type_textarea_editor_args', (callback) $array, (string) $edit ); 

Parameters (2)

0. $array — Optional. (callback) => array( 'teeny' => true, 'media_buttons' => false, 'quicktags' => true, 'textarea_rows' => 10, )
1. $edit (string) => 'edit'
The display context. edit when the markup is intended for the profile edit screen, admin when intended for the Profile Fields Dashboard panel.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'bp_xprofile_field_type_textarea_editor_args', $array, $edit ); 
  2.  
  3. if ( !empty( $array ) ) { 
  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_textarea_editor_args callback 
  2. function filter_bp_xprofile_field_type_textarea_editor_args( $array, $edit ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_xprofile_field_type_textarea_editor_args', 'filter_bp_xprofile_field_type_textarea_editor_args', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_xprofile_field_type_textarea_editor_args', 'filter_bp_xprofile_field_type_textarea_editor_args', 10, 2 ); 

Defined (2)

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

/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php  
  1. $editor_args = apply_filters( 'bp_xprofile_field_type_textarea_editor_args', array( 
  1. $editor_args = apply_filters( 'bp_xprofile_field_type_textarea_editor_args', array(