before_wp_tiny_mce
Action HookDescription
Fires immediately before the TinyMCE settings are printed.Hook Information
| File Location | wp-includes/class-wp-editor.phpView on GitHub | 
| Hook Type | Action | 
| Line Number | 1620 | 
Hook Parameters
| Type | Name | Description | 
|---|---|---|
| array | $mce_settings | TinyMCE settings array. | 
Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into before_wp_tiny_mce
add_action('before_wp_tiny_mce', 'my_custom_function', 10, 1);
function my_custom_function($mce_settings) {
    // Your custom code here
}
Source Code Context
                        wp-includes/class-wp-editor.php:1620
                        - How this hook is used in WordPress core
                    
                    <?php
1615  		 *
1616  		 * @since 3.2.0
1617  		 *
1618  		 * @param array $mce_settings TinyMCE settings array.
1619  		 */
1620  		do_action( 'before_wp_tiny_mce', self::$mce_settings );
1621  		?>
1622  
1623  		<script type="text/javascript">
1624  		tinyMCEPreInit = {
1625  			baseURL: "<?php echo $baseurl; ?>",
PHP Documentation
<?php
/**
		 * Fires immediately before the TinyMCE settings are printed.
		 *
		 * @since 3.2.0
		 *
		 * @param array $mce_settings TinyMCE settings array.
		 */
                        Quick Info
                    
                    - Hook Type: Action
- Parameters: 1
- File: wp-includes/class-wp-editor.php
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.
