Skip to main content

Filter: gform_rich_text_editor_buttons . $mce_filter

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $this->formId
  2. $this->id

Example hook names:

  • gform_rich_text_editor_buttons . $mce_filter (base hook)
  • gform_rich_text_editor_buttons . $mce_filter_1 (with first modifier value)
  • gform_rich_text_editor_buttons . $mce_filter_1_2 (with all modifier values)

Filters the buttons within the TinyMCE editor

Parameters

NameTypeDescription
$mce_buttonsarrayButtons to be included.
$editor_idstringHTML ID of the field.
$thisobjectThe field object

Since

Source

Defined in includes/fields/class-gf-field-textarea.php at line 349