Welcome to this tutorial series from King Solutions on How to Write a WordPress Plugin.
In this series we’ll take a look at exactly what it takes to build plugins for WordPress.
In this lesson we’ll continue the hooks, actions and filters topic with simple demonstration filter. This continues the previous lessons where we introduced plugins, built a basic plugin template and created a plugin class.
The task for this lesson is to search all your posts and convert specified keywords to hyperlinks? How long do you think this would take you? If you have more than just a few pages, quite a long time I would imagine. The good news, this is an ideal task for a filter. The even better news, the method we’ll employ changes the text as it is displayed (on-the-fly) so the underlying data is not modified.
So, in this demonstration we will write a text to hyperlink filter which will search all posts for the stipulated keywords and convert those keywords to hyperlinks.
In the last few years the powerful open source WordPress software has become very popular, not just for basic blogs but for full blown web environments. This has been made possible to a large part by the extensibility provided by the WordPress Plugin API interface.
Duration : 0:7:52