mce_buttons_2

mce_buttons_2

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('mce_buttons_2') is found 2 times:

  • /wp-includes/class-wp-editor.php line 707
    				 * @param array  $mce_buttons_2 Second-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.
    				 */
    				$mce_buttons_2 = apply_filters( 'mce_buttons_2', $mce_buttons_2, $editor_id );
    
    				/**
    				 * Filters the third-row list of TinyMCE buttons (Visual tab).
    				 *
    				 * @since 2.0.0
    				 * @since 3.3.0 The `$editor_id` parameter was added.
    
  • /wp-includes/script-loader.php line 595
    		'wp_help',
    	);
    
    	/** This filter is documented in wp-includes/class-wp-editor.php */
    	$toolbar2 = apply_filters( 'mce_buttons_2', $toolbar2, 'classic-block' );
    	/** This filter is documented in wp-includes/class-wp-editor.php */
    	$toolbar3 = apply_filters( 'mce_buttons_3', array(), 'classic-block' );
    	/** This filter is documented in wp-includes/class-wp-editor.php */
    	$toolbar4 = apply_filters( 'mce_buttons_4', array(), 'classic-block' );
    	/** This filter is documented in wp-includes/class-wp-editor.php */
    	$external_plugins = apply_filters( 'mce_external_plugins', array(), 'classic-block' );
    

See this hook used in plugins:

Examples using mce_buttons_2