gform_rich_text_editor_buttons_row_three

Description

The “gform_rich_text_editor_buttons_row_three” filter in Gravity Forms controls the buttons displayed in the third row within the Gravity Forms rich text editor. Note: WordPress and Gravity Forms do not include any buttons on the third 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

Applies to all forms:

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

To target a specific form append the form id to the hook name. (format: gform_rich_text_editor_buttons_row_three_FORMID)

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

To target a specific form field append the form id and field id to the hook name. (format: gform_rich_text_editor_buttons_row_three_FORMID_FIELDID)

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

Parameters

  • $mce_buttons array

    Array (empty by default) of third 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.