Creating plugins for Textpattern requires a certain amount of knowledge of PHP. Because a plugin can become a complicated endeavor this tutorial will simply cover a “Hello World” example. Please install ied_plugin_composer by Yura Linnyk in order to complete this tutorial.
Once you have installed ied_plugin_composer, go to the Extensions tab. Select the Plugin Composer tab and create a new plugin called “hel_world”.
Textpattern standards dictate that all plugins start with three letters and an underscore. To reserve your three letter developer name, go here.
3.
Add the following into the Select the Plugin field.
function hel_world() {
return 'Hello World';
}
4.
Check the enable plugin box and provide information in the fields that describes the plugin (Author, Version, Website, & Description).
5.
Click the Save button to save the plugin.
6.
You will now be able to place the following tag anywhere in one of the pages of your Textpattern install.
<txp:hel_world />