mce_buttons_4 filter-hookWP 2.5.0

Filters the fourth-row list of TinyMCE buttons (Visual tab).

Usage

add_filter( 'mce_buttons_4', 'wp_kama_mce_buttons_4_filter', 10, 2 );

/**
 * Function for `mce_buttons_4` filter-hook.
 * 
 * @param array  $mce_buttons_4 Fourth-row list of buttons.
 * @param string $editor_id     Unique editor identifier, e.g. 'content'. Accepts 'classic-block' when called from block editor's Classic block.
 *
 * @return array
 */
function wp_kama_mce_buttons_4_filter( $mce_buttons_4, $editor_id ){

	// filter...
	return $mce_buttons_4;
}
$mce_buttons_4(array)
Fourth-row list of buttons.
$editor_id(string)
Unique editor identifier, e.g. 'content'. Accepts 'classic-block' when called from block editor's Classic block.

Changelog

Since 2.5.0 Introduced.
Since 3.3.0 The $editor_id parameter was added.

Where the hook is called

_WP_Editors::editor_settings()
mce_buttons_4
wp_tinymce_inline_scripts()
mce_buttons_4
wp-includes/class-wp-editor.php 722
$mce_buttons_4 = apply_filters( 'mce_buttons_4', array(), $editor_id );
wp-includes/script-loader.php 498
$toolbar4 = apply_filters( 'mce_buttons_4', array(), 'classic-block' );

Where the hook is used in WordPress

Usage not found.