wp_tiny_mce

Outputs the TinyMCE editor.

Description

wp_tiny_mce( (constant) $teeny = false, (bool) $settings = false ); 

Parameters (2)

0. $teeny — Optional. (constant) => false
The teeny.
1. $settings — Optional. (bool) => false
The settings.

Usage

  1. if ( !function_exists( 'wp_tiny_mce' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4. // The teeny. 
  5. $teeny = false; 
  6.  
  7. // The settings. 
  8. $settings = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wp_tiny_mce($teeny, $settings); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function wp_tiny_mce( $teeny = false, $settings = false ) { 
  2. _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); 
  3.  
  4. static $num = 1; 
  5.  
  6. if ( ! class_exists( '_WP_Editors', false ) ) 
  7. require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); 
  8.  
  9. $editor_id = 'content' . $num++; 
  10.  
  11. $set = array( 
  12. 'teeny' => $teeny,  
  13. 'tinymce' => $settings ? $settings : true,  
  14. 'quicktags' => false 
  15. ); 
  16.  
  17. $set = _WP_Editors::parse_settings($editor_id, $set); 
  18. _WP_Editors::editor_settings($editor_id, $set);