Warning: This function has been deprecated.

rich_edit_exists() WordPress Function

The rich_edit_exists() function checks whether the user has the ability to edit posts in the WordPress visual editor. This function is useful for conditionally loading certain scripts or stylesheets on the front-end of the site.

rich_edit_exists() #

Determine if TinyMCE is available.


Description

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


Top ↑

Return

(bool) Whether TinyMCE exists.


Top ↑

Source

File: wp-includes/deprecated.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.9.0This function has been deprecated.
2.1.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.

Show More