apply_filters( 'bp_xprofile_field_type_textarea_editor_args', array $args , string $context )
Filters the arguments passed to wp_editor()
in richtext xprofile fields.
Description
Parameters
- $args
-
(array) Array of optional arguments. See
wp_editor()
.- 'teeny'
(bool) Whether to use the teeny version of TinyMCE. Default true. - 'media_buttons'
(bool) Whether to show media buttons. Default false. - 'quicktags'
(bool) Whether to show the quicktags buttons. Default true. - 'textarea_rows'
(int) Number of rows to display in the editor. Defaults to 1 in the 'admin' context, and 10 in the 'edit' context.
- 'teeny'
- $context
-
(string) The display context. 'edit' when the markup is intended for the profile edit screen, 'admin' when intended for the Profile Fields Dashboard panel.
Source
File: bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php
Changelog
Version | Description |
---|---|
BuddyPress 2.4.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.