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.


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.

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.

add_filter( 'gform_rich_text_editor_buttons_row_four_2_6', 'my_function', 10, 2 );


$mce_buttonsarrayArray (empty by default) of fourth row buttons to include within the TinyMCE editor inside Gravity Forms.
stringThe HTML element ID for the field using the rich text editor.
$field_objectobjectObject containing information about the field.

Source Code

This filter hook is located in class-gf-field-textarea.php.