Filter hook 'tiny_mce_before_init'

in WP Core File wp-includes/class-wp-editor.php at line 815

Description

Filters the TinyMCE config before init.

Occurrences

Filename Line Number
wp-includes/class-wp-editor.php 815
wp-includes/script-loader.php 620

Parameters

Type Name Description
array $mce_init An array with TinyMCE config.
string $editor_id Unique editor identifier, e.g. 'content'. Accepts 'classic-block' when called from block editor's Classic block.

PHP Doc

/**
				 * Filters the TinyMCE config before init.
				 *
				 * @since 2.5.0
				 * @since 3.3.0 The `$editor_id` parameter was added.
				 *
				 * @param array  $mce_init  An array with TinyMCE config.
				 * @param string $editor_id Unique editor identifier, e.g. 'content'. Accepts 'classic-block'
				 *                          when called from block editor's Classic block.
				 */