Plugins are used to extend the core functionality of WordPress, allowing you to create almost anything you could possibly require. The Plugin Directory contains thousands of community contributed plugins that you can download, rate, and comment on.
If you’re looking to create your own plugin and want to get it noticed, it’s recommended that you publish and host it in the directory. Here’s a quick guide to take you through the steps of publishing a plugin on a Windows based system.
- Download and install Tortoise SVN
- Request an SVN repository using the Add Your Plugin page (It may take few hours to get your request approved).
- Once you receive the SVN credentials you will be able to access the repository from http://svn.wp-plugins.org/plugin_name.
- Checkout the blank repository from your svn account. (This contains three empty folders – branches, tag, trunk). To do this, right click the folder you want to Checkout to and select SVN Checkout.
Enter the URL of your plugin repository and click OK.
Once the process is complete you will see the three folders that have been added.
- Copy the plugin files into the trunk folder and create a readme.txt file if one is not already present.
- Commit your changes by right clicking the folder and selecting SVN commit.
- You will be prompted for your authentication details, enter your WordPress.org/bbPress.org username and password (the same one you use on the forums).
- Now create a tag. Right click on the trunk folder and in the context menu go to TortoiseSVN and choose Branch/Tag. In the dialogue box change the url path from /trunk to /tags/0.1 (or whatever you have stated as the stable tag in the readme file.
- Run SVN update on the tags folder (Right click the tags folder and select SVN Update).
Committing a modified plugin / new version
- Make modifications to the trunk folder.
- Change the stable tag value in the readme file to the latest stable version, e.g. 0.1.1
- SVN commit the latest changes in the trunk.
- Tag the new version (see step 8 above) .
- SVN update the tags folder.