WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about mce_external_plugins

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-editor.php apply_filters 417 /**
* Filters the list of TinyMCE external plugins.
*
* The filter takes an associative array of external plugins for
* TinyMCE in the form 'plugin_name' => 'url'.
*
* The url should be absolute, and should include the js filename
* to be loaded. For example:
* 'myplugin' => 'http://mysite.com/wp-content/plugins/myfolder/mce_plugin.js'.
*
* If the external plugin adds a button, it should be added with
* one of the 'mce_buttons' filters.
*
* @since 2.5.0
* @since 5.3.0 The `$editor_id` parameter was added.
*
* @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.
*/
wp-includes/script-loader.php apply_filters 563 /**
* 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
*/

Hook Parameters

Parameter Type Name Description
array $external_plugins An array of external TinyMCE plugins.
string $editor_id Unique editor identifier, e.g. 'content'. Accepts 'classic-block'