mce_buttons_4
Это хук WordPress - mce_buttons_4. Плагин его просто использует.
Filters the fourth-row list of TinyMCE buttons (Visual tab).
Использование
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(массив)
- Fourth-row list of buttons.
- $editor_id(строка)
- Unique editor identifier, e.g. 'content'. Accepts 'classic-block' when called from block editor's Classic block.
Где вызывается хук
acf/includes/fields/class-acf-field-wysiwyg.php 108
4 => apply_filters( 'mce_buttons_4', array(), $editor_id ),