category = _x( 'Single Fields', 'xprofile field type category', 'buddypress' ); $this->name = _x( 'Multi-line Text Area', 'xprofile field type', 'buddypress' ); $this->supports_richtext = true; $this->set_format( '/^.*$/m', 'replace' ); /** * Fires inside __construct() method for BP_XProfile_Field_Type_Textarea class. * * @since 2.0.0 * * @param BP_XProfile_Field_Type_Textarea $this Current instance of * the field type textarea. */ do_action( 'bp_xprofile_field_type_textarea', $this ); } /** * Output the edit field HTML for this field type. * * Must be used inside the {@link bp_profile_fields()} template loop. * * @since 2.0.0 * * @param array $raw_properties Optional key/value array of * {@link http://dev.w3.org/html5/markup/textarea.html permitted attributes} * that you want to add. */ public function edit_field_html( array $raw_properties = array() ) { // User_id is a special optional parameter that certain other fields // types pass to {@link bp_the_profile_field_options()}. if ( isset( $raw_properties['user_id'] ) ) { unset( $raw_properties['user_id'] ); } $richtext_enabled = bp_xprofile_is_richtext_enabled_for_field(); ?> 40, 'rows' => 5, ) ); ?> true, 'media_buttons' => false, 'quicktags' => true, 'textarea_rows' => 10, ), 'edit' ); wp_editor( bp_get_the_profile_field_edit_value(), bp_get_the_profile_field_input_name(), $editor_args ); } if ( bp_get_the_profile_field_description() ) : ?>

40, 'rows' => 5, ) ); ?> true, 'media_buttons' => false, 'quicktags' => true, 'textarea_rows' => 1, ), 'admin' ); wp_editor( '', 'xprofile_textarea_' . bp_get_the_profile_field_id(), $editor_args ); } } /** * This method usually outputs HTML for this field type's children options on the wp-admin Profile Fields * "Add Field" and "Edit Field" screens, but for this field type, we don't want it, so it's stubbed out. * * @since 2.0.0 * * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. * @param string $control_type Optional. HTML input type used to render the current * field's child options. */ public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} }