While posting about my DrawBot adventures, I’ve become increasingly annoyed with my own post series WordPress plugin. If only it had a simple button in the WordPress editor to drop the shortcode for an existing series, it would instantly become so much better. Thus inspired, I delved into WordPress.org and sought out the answers. What I discovered is that while it’s not particularly difficult to add a button to the WordPress text editor, it didn’t seem to be very well documented. I’m still working on how to add a graphical button to the WordPress TinyMCE visual editor, so stay tuned for that. I was ultimately able to glean the necessary information from the WordPress “Quicktags API. However, for your sake1 I’m distilling what I’ve learned right here.
First, I’ll give you an overview of what we’re going to do. If you’re looking to add a button to the WordPress editor, it’s probably because you’re working on a plugin. Thus, I’ll assume you have a working knowledge of plugin development. Your plugin will need to include, at a bare minimum, one action hook and one function which performs the double duty of creating the button and giving the button some kind of ability.
- Wanna make a DrawBot?
- DrawBot Resources and Links
- DrawBot - Parts Shipped!!!
- DrawBot - What would you draw?
- DrawBot - Giant Unicorn?
- DrawBot – The Delivery, Part III
- DrawBot – The Assembly, Part II
- DrawBot – The Assembly, Part III
- i find i want to add more posts in some random series, just so i can use my new plugin
- Simple Series WordPress Plugin
- Now Simple Series will also add the series list to RSS feeds too!
- DrawBot – Pen Selection
- DrawBot – Drawing Success(ish)!!!
- DrawBot – Pen Selection, Part II
- DrawBot – Onwards and Upwards!
- DrawBot – Another Successful(ish) Drawing!, and an Update
- Plugin Considerations
- Restarting a Stalled DrawBot Drawing
- Excellent DrawBot Slides
- Why do DrawBots draw on walls?
- Maze Code + Polargraph?
- DrawBot Aesthetic Re-Design Ideas
- Building an Arduino Drawing Robot - On The Cheap
- DrawBot, now ACTUALLY wall mounted!
- Simple Series WordPress Plugin Update
- How to add a custom button to the WordPress editor
- A Study of Drawing Robot Pen Holders and Design Considerations
- Ideal Qualities in a Drawing Robot Pen Holder
- And, frankly, for my own future use [↩]