Writing a plugin for Piklist is very simple, the only additional step is registering your Plugin with Piklist.
Registering your Plugin with Piklist
When writing WordPress plugins that rely on other plugins, you usually have to use hooks and filters… but not with Piklist. We’ve simplified the process for you.
- First create a folder to hold your plugin. The folder name can be anything you want… this is the same as any other plugin you would write.
- Then create your main plugin file, and add the standard WordPress file headers to the top… this is also the same as any other plugin you would write.
- Now, here’s how you tell Piklist your plugin exists. Add one more line to the file header you just created: Plugin Type: Piklist. That’s it, your new plugin header would look something like this:
<?php /* Plugin Name: Name Of The Plugin Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates Description: A brief description of the Plugin. Version: The Plugin's Version Number, e.g.: 1.0 Author: Name Of The Plugin Author Author URI: http://URI_Of_The_Plugin_Author Plugin Type: Piklist License: A "Slug" license name e.g. GPL2 */ ?>
As long as you have Piklist activated on your site, this plugin will now run properly. It’s also recommended you include the Piklist Checker in your plugin to make sure Piklist is activated. If not, it let’s the user know.
Now you just need to create the proper folder structure, which you can learn about here.
Creating plugins have never been easier!