teeny_mce_buttons хук-фильтрACF 1.0

Это хук WordPress - teeny_mce_buttons. Плагин его просто использует.

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'.

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

acf_field_wysiwyg::get_toolbars()
teeny_mce_buttons
acf/includes/fields/class-acf-field-wysiwyg.php 123
1 => apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id ),

Где используется хук в Advanced Custom Fields PRO

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