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

Filters the list of teenyMCE buttons (Text tab).

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

add_filter( 'teeny_mce_buttons', 'wp_kama_teeny_mce_buttons_filter', 10, 2 );

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

	// filter...
	return $mce_buttons;
}
$mce_buttons(массив)
An array of teenyMCE buttons.
$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_buttons
wp-includes/class-wp-editor.php 636
$mce_buttons   = apply_filters( 'teeny_mce_buttons', $mce_buttons, $editor_id );

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

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