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?
Leave a Reply
You must be logged in to post a comment.
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?
You must be logged in to post a comment.
With the
quicktag_settings
filter:The default is:
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.
I’m late to this party I know, but might I add that it’s better to be agnostic about the default buttons provided by WordPress. So instead of typing the buttons you want, I choose to remove the buttons I don’t want:
Now if anyone at WordPress decides the quicktags-toolbar gets a new button, it will show up in your editor without a code change of your plugin/function.