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.
More Information
If you are doing this from within a theme, consider using add_editor_style() instead.
Source
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |