Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've been searching the codex, and I'm probably overlooking something somewhere, but could someone tell if it would be possible to remove a button/quicktag from the WordPress html editor?


share|improve this question

1 Answer 1

up vote 4 down vote accepted

With the quicktag_settings filter:

function wpa_47010( $qtInit ) {
    $qtInit['buttons'] = 'strong,em,link,block,del,img,ul,ol,li,code,more,spell,close,fullscreen';
    return $qtInit;
add_filter('quicktags_settings', 'wpa_47010');

The default is:

$qtInit['buttons'] = 'strong,em,link,block,del,ins,img,ul,ol,li,code,more,spell,close';

Though 'fullscreen' usually gets added too at the end. So I just deleted the 'ins' button.

edit to add: If you wish to create a custom button the following tutorial might help: http://myownhomeserver.com/2011/10/wordpress-addremove-quicktags-simple-editor-buttons-in-3-3/

share|improve this answer
Thanks @helgatheviking! I'm sure I've read that article. Don't know how I might have misinterpret that one though. –  Charlie Mar 27 '12 at 18:16
welcome! i think in the article they advocate disabling buttons via filtering $qtInit['disable_buttons']. but i didn't see that in the source code anywhere. adambrown.info/p/wp_hooks/hook/… –  helgatheviking Mar 27 '12 at 18:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.