jump to navigation

Try Firefox - it's faster, and more secure than internet explorer. It even has a cute little mascot.

Journal

A 3 step guide to getting your Wordpress plugin onto Wordpress.org

January 14, 2008 | Web Design

I recently got my bm-custom-login plugin accepted onto the Wordress plugin repository. In order to get it online I had to use subversion - something I’ve never used before.

I found the “using svn page” on wordpress.org to be rather intimidating. For example the first section “getting started” jumps straight into telling you what commands to type without even mentioning the basic things such as what to download. This seems to go against the simple software the Wordpress team try to promote so I thought I’d work it out for myself and document the process. It was considerably simpler than expected.

Before we start

Since this is a tutorial for uploading Wordpress plugins I think I should point out that you will need a Wordpress.org account, and to have submitted an application for them to host your plugin. Once you get the confirmation email (which seems to take a couple of days) you can move on.

Step 1 - Get the software

I knew from the start that I didn’t want to mess around with the command line. I won’t be using svn (subversion) often enough to need to learn it, and I don’t want to have to remember all the obtuse commands. This meant my first port of call was some visual svn software. A 30 second search on Google showed me that TortoiseSVN was by far the most popular so I figured I’d use that - you can download TortoiseSVN here.

After downloading, install TortoiseSVN. This package contains everything you’ll need to manage your files. If you want to create an SVN server then you will need Subversion itself but that’s outside the scope of this tutorial.

Step 2 - Check in the initial files

When you register a plugin on wordpress.org the svn folder is created for you so you can skip that. All you need is to create a folder on your pc for your subversion files. I created an SVN folder then a bm-custom-login folder - I will then place all future plugins in the same folder. Right click on your plugin folder, and select “SVN Update”, you will be asked where to update the files from (use the url sent to you when your wordpress plugin was approved) and the existing files will be downloaded. Remember, anybody can download these files, but only you can upload them…

Step 3 - Update your plugin

Create a readme.txt file using this as an outline. This file outlines what will be displayed on your plugin page. Save the readme.txt into the same folder as your plugin.

Go back to your main plugin folder (in my case ‘SVN/bm-custom-login’), right click and press “SVN Commit”. You will now be asked for your login information, which is the same as your wordpress.org login details. Press ok, and your plugin will be uploaded. Now wait a short while and your plugin will be live on Wordpress Extend.

In the future…

Now that I have the plugin online I have decided to forward all download requests through this page. Doing this will ensure people always have the latest version, it also means I only have to update one set of code. Finally having the code on wordpress.org means that should I update the plugin people using it will be informed via the built in plugin update notifications.

Since I now have the know how, I will be releasing some of my other custom plugins fairly soon.

Comments »

  1. 1. Zman
    January 21, 2008

    Hello,

    I was wondering if you could give me a little assistance with your highlighter plugin? It’s downloaded and activated and all I want to be able to do is highlight author comments. What exact line of php should I place in the comment css? My subscribers have been asking me to do this for quite some time. I tried another but had mixed results. tia.

  2. 2. Ben
    January 21, 2008

    Hi Zman - I am going to be writing a post about the highlight plugin soon, but basically what you need to do is stick the highlight command into a class giving you something to style.

    Something like

    < li class="<?php echo bm_commentHighlight(); ?>">Comment here</li>

    How you do this will be different for every website, but hopefully that will get you going.

Leave a message tell me what you're thinking

Please feel free to comment - I like receiving them - however I would appreciate you using your real name. I am not here to improve your search engine ranking. Abusive/ Inappropriate posts and advertisements will be deleted.

Binary Moon