Filter hook 'mce_buttons_3'

in WP Core File wp-includes/script-loader.php at line 592

View Source

mce_buttons_3

Filter Hook
Description
Adds inline scripts required for the TinyMCE in the block editor. These TinyMCE init settings are used to extend and override the default settings from `_WP_Editors::default_settings()` for the Classic block.

Hook Information

File Location wp-includes/script-loader.php View on GitHub
Hook Type Filter
Line Number 592

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into mce_buttons_3
add_filter('mce_buttons_3', 'my_custom_filter');

function my_custom_filter() {
    // Your custom filtering logic here
    return 'modified_value';
}

Source Code Context

wp-includes/script-loader.php:592 - How this hook is used in WordPress core
<?php
 587  	);
 588  
 589  	/** This filter is documented in wp-includes/class-wp-editor.php */
 590  	$toolbar2 = apply_filters( 'mce_buttons_2', $toolbar2, 'classic-block' );
 591  	/** This filter is documented in wp-includes/class-wp-editor.php */
 592  	$toolbar3 = apply_filters( 'mce_buttons_3', array(), 'classic-block' );
 593  	/** This filter is documented in wp-includes/class-wp-editor.php */
 594  	$toolbar4 = apply_filters( 'mce_buttons_4', array(), 'classic-block' );
 595  	/** This filter is documented in wp-includes/class-wp-editor.php */
 596  	$external_plugins = apply_filters( 'mce_external_plugins', array(), 'classic-block' );
 597  

PHP Documentation

<?php
/**
 * Adds inline scripts required for the TinyMCE in the block editor.
 *
 * These TinyMCE init settings are used to extend and override the default settings
 * from `_WP_Editors::default_settings()` for the Classic block.
 *
 * @since 5.0.0
 *
 * @global WP_Scripts $wp_scripts
 */
Quick Info
  • Hook Type: Filter
  • Parameters: 0
  • File: wp-includes/script-loader.php
Related Hooks

Related hooks will be displayed here in future updates.