wp_tiny_mce_init
Action HookDescription
Fires after tinymce.js is loaded, but before any TinyMCE editor instances are created.Hook Information
File Location |
wp-includes/class-wp-editor.php
View on GitHub
|
Hook Type | Action |
Line Number | 1659 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$mce_settings
|
TinyMCE settings array. |
Usage Examples
Basic Usage
<?php
// Hook into wp_tiny_mce_init
add_action('wp_tiny_mce_init', 'my_custom_function', 10, 1);
function my_custom_function($mce_settings) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-editor.php:1659
- How this hook is used in WordPress core
<?php
1654 *
1655 * @since 3.9.0
1656 *
1657 * @param array $mce_settings TinyMCE settings array.
1658 */
1659 do_action( 'wp_tiny_mce_init', self::$mce_settings );
1660
1661 ?>
1662 <script type="text/javascript">
1663 <?php
1664
PHP Documentation
<?php
/**
* Fires after tinymce.js is loaded, but before any TinyMCE editor
* instances are created.
*
* @since 3.9.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.