wp_editor_settings
Filter HookDescription
Adds inline scripts required for the TinyMCE in the block editor. These TinyMCE init settings are used to extend and override the default settings from `_WP_Editors::default_settings()` for the Classic block.Hook Information
File Location |
wp-includes/script-loader.php
View on GitHub
|
Hook Type | Filter |
Line Number | 520 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into wp_editor_settings
add_filter('wp_editor_settings', 'my_custom_filter');
function my_custom_filter() {
// Your custom filtering logic here
return 'modified_value';
}
Source Code Context
wp-includes/script-loader.php:520
- How this hook is used in WordPress core
<?php
515 */
516 function wp_tinymce_inline_scripts() {
517 global $wp_scripts;
518
519 /** This filter is documented in wp-includes/class-wp-editor.php */
520 $editor_settings = apply_filters( 'wp_editor_settings', array( 'tinymce' => true ), 'classic-block' );
521
522 $tinymce_plugins = array(
523 'charmap',
524 'colorpicker',
525 'hr',
PHP Documentation
<?php
/**
* Adds inline scripts required for the TinyMCE in the block editor.
*
* These TinyMCE init settings are used to extend and override the default settings
* from `_WP_Editors::default_settings()` for the Classic block.
*
* @since 5.0.0
*
* @global WP_Scripts $wp_scripts
*/
Quick Info
- Hook Type: Filter
- Parameters: 0
- File: wp-includes/script-loader.php
Related Hooks
Related hooks will be displayed here in future updates.