before_wp_tiny_mce
Fires immediately before the TinyMCE settings are printed.
Usage
add_action( 'before_wp_tiny_mce', 'wp_kama_before_wp_tiny_mce_action' ); /** * Function for `before_wp_tiny_mce` action-hook. * * @param array $mce_settings TinyMCE settings array. * * @return void */ function wp_kama_before_wp_tiny_mce_action( $mce_settings ){ // action... }
- $mce_settings(array)
- TinyMCE settings array.
Changelog
Since 3.2.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-editor.php 1620
do_action( 'before_wp_tiny_mce', self::$mce_settings );