How to Use a Filter on TinyMCE to Add Buttons

Recently, I was asked to add a button to the visual editor for posts and pages on a WordPress install that would insert the <!--nextpage--> code for article pagination . I had done this before, but wanted to write about it here, since I’d totally forgotten how to do it, and wanted to make sure I had a snippet or two for reference.

Read More