after_wp_tiny_mce
Action HookDescription
Fires after any core TinyMCE editor instances are created.Hook Information
File Location |
wp-includes/class-wp-editor.php
View on GitHub
|
Hook Type | Action |
Line Number | 1745 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$mce_settings
|
TinyMCE settings array. |
Usage Examples
Basic Usage
<?php
// Hook into after_wp_tiny_mce
add_action('after_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:1745
- How this hook is used in WordPress core
<?php
1740 *
1741 * @since 3.2.0
1742 *
1743 * @param array $mce_settings TinyMCE settings array.
1744 */
1745 do_action( 'after_wp_tiny_mce', self::$mce_settings );
1746 }
1747
1748 /**
1749 * Outputs the HTML for distraction-free writing mode.
1750 *
PHP Documentation
<?php
/**
* Fires after any core TinyMCE editor instances are created.
*
* @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.