On this page
wp_tiny_mce( $teeny = false, $settings = false )
This function has been deprecated. Use wp_editor() instead.
Outputs the TinyMCE editor.
Description
See also
Source
File: wp-admin/includes/deprecated.php. View all references
function wp_tiny_mce( $teeny = false, $settings = false ) {
_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
static $num = 1;
if ( ! class_exists( '_WP_Editors', false ) )
require_once ABSPATH . WPINC . '/class-wp-editor.php';
$editor_id = 'content' . $num++;
$set = array(
'teeny' => $teeny,
'tinymce' => $settings ? $settings : true,
'quicktags' => false
);
$set = _WP_Editors::parse_settings($editor_id, $set);
_WP_Editors::editor_settings($editor_id, $set);
}
Related
Uses
| Uses | Description |
|---|---|
| _WP_Editors::parse_settings() wp-includes/class-wp-editor.php | Parse default arguments for the editor instance. |
| _WP_Editors::editor_settings() wp-includes/class-wp-editor.php | |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Used By
| Used By | Description |
|---|---|
| tinymce_include() wp-admin/includes/deprecated.php |
Changelog
| Version | Description |
|---|---|
| 3.3.0 | Use wp_editor() |
| 2.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_tiny_mce