mce_css
Filters the comma-delimited list of stylesheets to load in TinyMCE.
Usage
add_filter( 'mce_css', 'wp_kama_mce_css_filter' );
/**
* Function for `mce_css` filter-hook.
*
* @param string $stylesheets Comma-delimited list of stylesheets.
*
* @return string
*/
function wp_kama_mce_css_filter( $stylesheets ){
// filter...
return $stylesheets;
}
- $stylesheets(string)
- Comma-delimited list of stylesheets.
Changelog
| Since 2.1.0 | Introduced. |
Where the hook is called
mce_css
wp-includes/class-wp-editor.php 600
$mce_css = trim( apply_filters( 'mce_css', $mce_css ), ' ,' );