Warning: This function has been deprecated. Use wp_editor() instead.

wp_tiny_mce() WordPress Function

The wp_tiny_mce() function enables the WordPress rich text editor for a specific page or post. This function can be used to turn the editor on or off, or to set specific options for the editor.

wp_tiny_mce( $teeny = false,  $settings = false ) #

Outputs the TinyMCE editor.


Description

Top ↑

See also


Top ↑

Source

File: wp-admin/includes/deprecated.php

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);
}


Top ↑

Changelog

Changelog
VersionDescription
3.3.0Use wp_editor()
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.