mce_buttons_4
Filters the fourth-row list of TinyMCE buttons (Visual tab).
Description
Parameters (2)
- 0. $array (array) =>
array()
- Fourth-row list of buttons.
- 1. $editor_id (string)
- Unique editor identifier, e.g. content..
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'mce_buttons_4', $array, $editor_id );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the mce_buttons_4 callback
- function filter_mce_buttons_4( $array, $editor_id ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'mce_buttons_4', 'filter_mce_buttons_4', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'mce_buttons_4', 'filter_mce_buttons_4', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/class-wp-editor.php
- $mce_buttons_3 = apply_filters( 'mce_buttons_3', array(), $editor_id );