editor_stylesheets
Filters the array of URLs of stylesheets applied to the editor.
Usage
add_filter( 'editor_stylesheets', 'wp_kama_editor_stylesheets_filter' );
/**
* Function for `editor_stylesheets` filter-hook.
*
* @param string[] $stylesheets Array of URLs of stylesheets to be applied to the editor.
*
* @return string[]
*/
function wp_kama_editor_stylesheets_filter( $stylesheets ){
// filter...
return $stylesheets;
}
- $stylesheets(string[])
- Array of URLs of stylesheets to be applied to the editor.
Changelog
| Since 4.3.0 | Introduced. |
Where the hook is called
editor_stylesheets
wp-includes/theme.php 2273
return apply_filters( 'editor_stylesheets', $stylesheets );