teeny_mce_before_init filter-hook . WP 2.7.0
Filters the teenyMCE config before init.
Usage
add_filter( 'teeny_mce_before_init', 'filter_function_name_7471', 10, 2 ); function filter_function_name_7471( $mceInit, $editor_id ){ // filter... return $mceInit; }
- $mceInit(array)
- An array with teenyMCE config.
- $editor_id(string)
- Unique editor identifier, e.g. 'content'.
Changelog
Since 2.7.0 | Introduced. |
Since 3.3.0 | The $editor_id parameter was added. |
Where the hook is called
teeny_mce_before_init
wp-includes/class-wp-editor.php 793
$mceInit = apply_filters( 'teeny_mce_before_init', $mceInit, $editor_id );
Where in WP core the hook is used WordPress
wp-includes/class-wp-editor.php 246
add_filter( 'teeny_mce_before_init', '_mce_set_direction' );