rich_edit_exists

Determine if TinyMCE is available.

Description

rich_edit_exists(); 

Checks to see if the user has deleted the tinymce files to slim down their WordPress install.


Usage

  1. if ( !function_exists( 'rich_edit_exists' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rich_edit_exists(); 
  7.  

Defined (1)

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

/wp-includes/deprecated.php  
  1. function rich_edit_exists() { 
  2. global $wp_rich_edit_exists; 
  3. _deprecated_function( __FUNCTION__, '3.9.0' ); 
  4.  
  5. if ( ! isset( $wp_rich_edit_exists ) ) 
  6. $wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' ); 
  7.  
  8. return $wp_rich_edit_exists;