rich_edit_exists() WP 2.1.0
Deprecated from version 3.9.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.╳
Determine if TinyMCE is available.
Checks to see if the user has deleted the tinymce files to slim down their WordPress installation.
No Hooks.
Return
true|false
. Whether TinyMCE exists.
Usage
rich_edit_exists();
Changelog
Since 2.1.0 | Introduced. | |
Deprecated | 3.9.0 |
Code of rich_edit_exists() rich edit exists WP 5.7.1
function rich_edit_exists() {
global $wp_rich_edit_exists;
_deprecated_function( __FUNCTION__, '3.9.0' );
if ( ! isset( $wp_rich_edit_exists ) )
$wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );
return $wp_rich_edit_exists;
}