editor_stylesheets
Filter HookDescription
Filters the array of URLs of stylesheets applied to the editor.Hook Information
File Location |
wp-includes/theme.php
View on GitHub
|
Hook Type | Filter |
Line Number | 2271 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$stylesheets
|
Array of URLs of stylesheets to be applied to the editor. |
Usage Examples
Basic Usage
<?php
// Hook into editor_stylesheets
add_filter('editor_stylesheets', 'my_custom_filter', 10, 1);
function my_custom_filter($stylesheets) {
// Your custom filtering logic here
return $stylesheets;
}
Source Code Context
wp-includes/theme.php:2271
- How this hook is used in WordPress core
<?php
2266 *
2267 * @since 4.3.0
2268 *
2269 * @param string[] $stylesheets Array of URLs of stylesheets to be applied to the editor.
2270 */
2271 return apply_filters( 'editor_stylesheets', $stylesheets );
2272 }
2273
2274 /**
2275 * Expands a theme's starter content configuration using core-provided data.
2276 *
PHP Documentation
<?php
/**
* Filters the array of URLs of stylesheets applied to the editor.
*
* @since 4.3.0
*
* @param string[] $stylesheets Array of URLs of stylesheets to be applied to the editor.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/theme.php
Related Hooks
Related hooks will be displayed here in future updates.