CodeTab WordPress Plugin Development Tutorial
Some time back, we released Share on Social, a social media sharing plugin. In this WordPress Plugin Development Tutorial, we go through the construction of the plugin and also other essentials to develop a robust WordPress plugin, so as to share the experience with aspiring WordPress Plugin developers.
There are enough blogs about WordPress Plugin Development. However, it is difficult to find a complete tutorial that explains structure and working of a production ready plugin. In other words, a guide that covers a plugin project from start to end is not easily available. CodeTab WordPress Plugin Development Tutorial is a step by step guide that explains the development of Share on Social Plugin and in the process, it introduces plugin developers to essential WordPress APIs and architecture.
Releasing a WordPress Plugin to public without a good unit test suit in place will eventually make plugin maintenance a tedious task, in terms of bug fixes and frequent releases. It is easy to find excellent plugin code in the WordPress Plugin Repository, but it is difficult to get hold of unit tests to study how the leading Plugin Developers have structured the tests. Many blogs explain the test environment setup and basics, but none attempts to show how it is done at the project level. For new plugin developers, getting the test setup up and running is a frustrating experience. In this WordPress Plugin Development Tutorial, we explain plugin unit test setup in a step by step manner and also, share the entire suit of unit tests we wrote for Share on Social Plugin. Downloads page has the development version of Share on Social Plugin Eclipse Project which comes with complete Phpunit test suit.
Table of Contents
- 1. Install WordPress locally
- 2. WordPress Plugin Basics
- 3. WordPress Plugin Structure
- 4. WordPress Plugin Main File
- 5. WordPress Hooks, Actions, Filters
- 6. Admin Module – Settings
- 7. Admin Module – Custom Posts
- 8. Frontend
- 9. Ajax
- 10. Internationalization
- 11. Activation
- 12. Testing