When developing a new WordPress site, you’ll often want to add some dummy text to your posts and pages so you can see what the site will look like before the content is published. In this tutorial, you’ll learn how to speed up this process by developing a plugin that generates dummy text for you.The plugin you’ll be creating will add a button to the WYSIWYG editor which, when clicked, will open a window and ask for the number of paragraphs of dummy text to create. The user will enter a number, and the content will be inserted!Please note this plugin uses the TinyMCE 4.0 library, which was recently integrated in WordPress 3.9, meaning that this plugin will only work in 3.9 and newer.Initializing the PluginStep 1To get started, create a new folder in the wp-content/plugins directory of your site, and give it a title
Read the original post:
Creating Dummy Text in WordPress