editor_stylesheets
Filters the array of URLs of stylesheets applied to the editor.
Использование
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.
Список изменений
С версии 4.3.0 | Введена. |
Где вызывается хук
editor_stylesheets
wp-includes/theme.php 2271
return apply_filters( 'editor_stylesheets', $stylesheets );