wp_tiny_mce_init
Fires after tinymce.js is loaded, but before any TinyMCE editor instances are created.
Usage
add_action( 'wp_tiny_mce_init', 'wp_kama_tiny_mce_init_action' ); /** * Function for `wp_tiny_mce_init` action-hook. * * @param array $mce_settings TinyMCE settings array. * * @return void */ function wp_kama_tiny_mce_init_action( $mce_settings ){ // action... }
- $mce_settings(array)
- TinyMCE settings array.
Changelog
Since 3.9.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-editor.php 1658
do_action( 'wp_tiny_mce_init', self::$mce_settings );