mce_buttons

mce_buttons

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('mce_buttons') is found 2 times:

  • /wp-includes/class-wp-editor.php line 680
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    * @param array  $mce_buttons First-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 = apply_filters( 'mce_buttons', $mce_buttons, $editor_id );
     
    $mce_buttons_2 = array(
        'strikethrough',
        'hr',
        'forecolor',
        'pastetext',
  • /wp-includes/script-loader.php line 573
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
        'wp_adv',
    );
     
    /** This filter is documented in wp-includes/class-wp-editor.php */
    $toolbar1 = apply_filters( 'mce_buttons', $toolbar1, 'classic-block' );
     
    $toolbar2 = array(
        'strikethrough',
        'hr',
        'forecolor',
        'pastetext',

See this hook used in plugins: