teeny_mce_buttons
This is a WordPress - teeny_mce_buttons hook. The plugin just uses it.
Filters the list of teenyMCE buttons (Code tab).
Usage
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(array)
- An array of teenyMCE buttons.
- $editor_id(string)
- Unique editor identifier, e.g. 'content'.
Where the hook is called
acf/includes/fields/class-acf-field-wysiwyg.php 122
1 => apply_filters( 'teeny_mce_buttons', $teeny_mce_buttons, $editor_id ),