teeny_mce_plugins filter-hookWP 2.7.0

Filters the list of teenyMCE plugins.

Usage

add_filter( 'teeny_mce_plugins', 'wp_kama_teeny_mce_plugins_filter', 10, 2 );

/**
 * Function for `teeny_mce_plugins` filter-hook.
 * 
 * @param array  $plugins   An array of teenyMCE plugins.
 * @param string $editor_id Unique editor identifier, e.g. 'content'.
 *
 * @return array
 */
function wp_kama_teeny_mce_plugins_filter( $plugins, $editor_id ){

	// filter...
	return $plugins;
}
$plugins(array)
An array of teenyMCE plugins.
$editor_id(string)
Unique editor identifier, e.g. 'content'.

Changelog

Since 2.7.0 Introduced.
Since 3.3.0 The $editor_id parameter was added.

Where the hook is called

_WP_Editors::editor_settings()
teeny_mce_plugins
wp-includes/class-wp-editor.php 384-396
$plugins = apply_filters(
	'teeny_mce_plugins',
	array(
		'colorpicker',
		'lists',
		'fullscreen',
		'image',
		'wordpress',
		'wpeditimage',
		'wplink',
	),
	$editor_id
);

Where the hook is used in WordPress

Usage not found.