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

---

# do_action( ‘before_wp_tiny_mce’, array $mce_settings )

## In this article

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

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

Fires immediately before the TinyMCE settings are printed.

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

 `$mce_settings`array

TinyMCE settings array.

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

    ```php
    do_action( 'before_wp_tiny_mce', self::$mce_settings );
    ```

[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#L1620)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-editor.php#L1620-L1620)

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

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

Print (output) the TinyMCE configuration and initialization scripts.

  |

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

| Version | Description | 
| [3.2.0](https://developer.wordpress.org/reference/since/3.2.0/) | Introduced. |

## User Contributed Notes

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