wp_editor_settings

wp_editor_settings

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_editor_settings') is found 2 times:

  • /wp-includes/class-wp-editor.php line 83
    		 * @param array  $settings  Array of editor arguments.
    		 * @param string $editor_id Unique editor identifier, e.g. 'content'. Accepts 'classic-block'
    		 *                          when called from block editor's Classic block.
    		 */
    		$settings = apply_filters( 'wp_editor_settings', $settings, $editor_id );
    
    		$set = wp_parse_args(
    			$settings,
    			array(
    				// Disable autop if the current post has blocks in it.
    				'wpautop'             => ! has_blocks(),
    
  • /wp-includes/script-loader.php line 525
    function wp_tinymce_inline_scripts() {
    	global $wp_scripts;
    
    	/** This filter is documented in wp-includes/class-wp-editor.php */
    	$editor_settings = apply_filters( 'wp_editor_settings', array( 'tinymce' => true ), 'classic-block' );
    
    	$tinymce_plugins = array(
    		'charmap',
    		'colorpicker',
    		'hr',
    		'lists',
    

See this hook used in plugins: