mce_css WordPress Filter Hook

The mce_css hook is used to load custom CSS into the WordPress visual editor. This allows you to add your own styles to the editor, which can be useful for making sure your content looks consistent with the rest of your site.

apply_filters( 'mce_css', string $stylesheets ) #

Filters the comma-delimited list of stylesheets to load in TinyMCE.


Parameters

$stylesheets

(string)Comma-delimited list of stylesheets.


Top ↑

More Information

If you are doing this from within a theme, consider using add_editor_style() instead.


Top ↑

Source

File: wp-includes/class-wp-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
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.