This is a community maintained repository of code snippets that will help with the development of your plugin using my WordPress Plugin Boilerplate.
Snippets are organized into categories (folders) and each snippet is placed in its own file with a name that describes what it does and where to put the code snippet.
- Click on the filename of the snippet you'd like to use. Each file contains the snippet of code.
- Click the "Raw" button (next to "Blame" and "History") at the top right.
- At the top of the file you will find instructions on where to implement the code into the WordPress Plugin Boilerplate.
I welcome and encourage everyone to submit their code snippets. If you would like to submit your snippet, please fork the repository and then create a pull request.
Please refer to the Contributing guidelines before submitting your pull request.
If there is a snippet you are unable to find and would like to propose get written, please open an issue and describe your need.
These snippets come with no guarantees. Due to the constant evolution of the WordPress Plugin Boilerplate codebase, it is possible that the behavior of these snippets may change overtime. Find something broken? Let me know!