wordpress / latest / functions / rich_edit_exists.html

rich_edit_exists(): bool

This function has been deprecated.

Determine if TinyMCE is available.

Description

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

Return

bool Whether TinyMCE exists.

Source

File: wp-includes/deprecated.php. View all references

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

Uses

Uses Description

Changelog

Version Description
3.9.0 This function has been deprecated.
2.1.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/rich_edit_exists