mce_external_plugins

mce_external_plugins

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('mce_external_plugins') is found 2 times:

  • /wp-includes/class-wp-editor.php line 419
    					 * @param array  $external_plugins An array of external TinyMCE plugins.
    					 * @param string $editor_id        Unique editor identifier, e.g. 'content'. Accepts 'classic-block'
    					 *                                 when called from block editor's Classic block.
    					 */
    					$mce_external_plugins = apply_filters( 'mce_external_plugins', array(), $editor_id );
    
    					$plugins = array(
    						'charmap',
    						'colorpicker',
    						'hr',
    						'lists',
    
  • /wp-includes/script-loader.php line 601
    	$toolbar3 = apply_filters( 'mce_buttons_3', array(), 'classic-block' );
    	/** This filter is documented in wp-includes/class-wp-editor.php */
    	$toolbar4 = apply_filters( 'mce_buttons_4', array(), 'classic-block' );
    	/** This filter is documented in wp-includes/class-wp-editor.php */
    	$external_plugins = apply_filters( 'mce_external_plugins', array(), 'classic-block' );
    
    	$tinymce_settings = array(
    		'plugins'              => implode( ',', $tinymce_plugins ),
    		'toolbar1'             => implode( ',', $toolbar1 ),
    		'toolbar2'             => implode( ',', $toolbar2 ),
    		'toolbar3'             => implode( ',', $toolbar3 ),
    

See this hook used in plugins: