teeny_mce_plugins хук-фильтрWP 2.7.0

Filters the list of teenyMCE plugins.

Использование

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(массив)
An array of teenyMCE plugins.
$editor_id(строка)
Unique editor identifier, e.g. 'content'.

Список изменений

С версии 2.7.0 Введена.
С версии 3.3.0 The $editor_id parameter was added.

Где вызывается хук

_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
);

Где используется хук в WordPress

Использование не найдено.