Description
The “gform_rich_text_editor_buttons_row_four” filter in Gravity Forms controls the buttons displayed in the fourth row within the Gravity Forms rich text editor. Note: WordPress and Gravity Forms do not include any buttons on the fourth row of the rich text editor by default.
For more specific use case examples please see our documentation for the gform_rich_text_editor_buttons parent filter.
Usage
This section shows different usage formats, and includes a small example of each.
Applies to all forms:
add_filter( 'gform_rich_text_editor_buttons_row_four', 'my_function', 10, 2 );
To target a specific form, append the form id to the hook name.
gform_rich_text_editor_buttons_row_four_FORMID
add_filter( 'gform_rich_text_editor_buttons_row_four_2', 'my_function', 10, 2 );
To target a specific form field, append the form id and field id to the hook name.
gform_rich_text_editor_buttons_row_four_FORMID_FIELDID
add_filter( 'gform_rich_text_editor_buttons_row_four_2_6', 'my_function', 10, 2 );
Parameters
Parameter | Type | Description |
---|---|---|
$mce_buttons | array | Array (empty by default) of fourth row buttons to include within the TinyMCE editor inside Gravity Forms. |
$editor_id | string | The HTML element ID for the field using the rich text editor. |
$field_object | object | Object containing information about the field. |
Source Code
This filter hook is located in class-gf-field-textarea.php.