teeny_mce_buttons filter-hook . WP 2.7.0
Filters the list of teenyMCE buttons (Text tab).
Usage
add_filter( 'teeny_mce_buttons', 'filter_function_name_6352', 10, 2 ); function filter_function_name_6352( $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'.
Changelog
Since 2.7.0 | Introduced. |
Since 3.3.0 | The $editor_id parameter was added. |
Where the hook is called
teeny_mce_buttons
wp-includes/class-wp-editor.php 627
$mce_buttons = apply_filters( 'teeny_mce_buttons', $mce_buttons, $editor_id );