Title: mce_buttons_4
Published: April 25, 2014
Last modified: April 28, 2025

---

# apply_filters( ‘mce_buttons_4’, array $mce_buttons_4, string $editor_id )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#wp--skip-link--target)

Filters the fourth-row list of TinyMCE buttons (Visual tab).

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#parameters)󠁿

 `$mce_buttons_4`array

Fourth-row list of buttons.

`$editor_id`string

Unique editor identifier, e.g. `'content'`. Accepts `'classic-block'` when called
from block editor’s Classic block.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#source)󠁿

    ```php
    $mce_buttons_4 = apply_filters( 'mce_buttons_4', array(), $editor_id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-editor.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-editor.php#L733)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-editor.php#L733-L733)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_tinymce_inline_scripts()](https://developer.wordpress.org/reference/functions/wp_tinymce_inline_scripts/)`wp-includes/script-loader.php` |

Adds inline scripts required for the TinyMCE in the block editor.

  | 
| [_WP_Editors::editor_settings()](https://developer.wordpress.org/reference/classes/_wp_editors/editor_settings/)`wp-includes/class-wp-editor.php` |  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/mce_buttons_4/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.3.0](https://developer.wordpress.org/reference/since/3.3.0/) | The `$editor_id` parameter was added. | 
| [2.5.0](https://developer.wordpress.org/reference/since/2.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fmce_buttons_4%2F)
before being able to contribute a note or feedback.