remove_editor_styles

Definition:
function remove_editor_styles() {}

Removes all visual editor stylesheets.

Return values

returns:True on success, false if there were no stylesheets to remove.

Source code

function remove_editor_styles() {

	if ( ! current_theme_supports( 'editor-style' ) )

		return false;

	_remove_theme_support( 'editor-style' );

	if ( is_admin() )

		$GLOBALS['editor_styles'] = array();

	return true;

}

10192

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: