teeny_mce_plugins хук-фильтр . WP 2.7.0
Filters the list of teenyMCE plugins.
Использование
add_filter( 'teeny_mce_plugins', 'filter_function_name_889', 10, 2 ); function filter_function_name_889( $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. |
Где вызывается хук
teeny_mce_plugins
wp-includes/class-wp-editor.php 381-393
$plugins = apply_filters( 'teeny_mce_plugins', array( 'colorpicker', 'lists', 'fullscreen', 'image', 'wordpress', 'wpeditimage', 'wplink', ), $editor_id );