Unable to add “code” button to TinyMCE toolbar


This is driving me crazy. Using code from the WP codex, I can add SOME buttons to the TinyMCE bar, but NOT others. For example this code:

function my_mce_buttons_2($buttons) {   
     * Add in a core button that's disabled by default
    $buttons[] = 'sup';
    $buttons[] = 'code';     
    $buttons[] = 'hr';
    $buttons[] = 'fullscreen';

    return $buttons;
add_filter('mce_buttons_2', 'my_mce_buttons_2');

WILL add the hr and fullscreen buttons to the editor, but WILL NOT add the code nor superscript button to the editor. What gives?!

Any ideas? I am using WP 3.9.1


>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/unable-to-add-code-button-to-tinymce-toolbar/">

Unable to add "code" button to TinyMCE toolbar</a>
Stephen 3 months 0 Answers 61 views 0

Leave an answer