Tag Archives: how to

Use Custom Actions in Your WordPress Plugins

If you’ve been using WordPress for any amount of time, you’ve probably come across a plugin that asks you to add something to your template. The instructions will say something like:
Insert the following into your theme files where you want the plugin’s widget to appear:
<?php my_plugin_widget() ?>

The slightly more intelligent instructions will understand that [...]

Use Classes in your WordPress plugins to increase code portability and reduce name conflicts

One of the most powerful features of WordPress is the huge community of developers making plugins that extend the software far beyond what the core application provides. It also allows people to add just what they want to use, rather than having a single bloated homogeneous download. There are drawbacks as well, of [...]

On Attribution and Plugin Priorities in WordPress

A few weeks ago I wrote instructions on putting a plugin attribution in the footer of your plugin’s Admin/Settings screen. It’s a good technique, and I’ve already seen a few plugins using it. I’ve noticed somewhat of an issue recently. This is nothing Earth-shaking, nor will it break anybody’s blog; it’s really [...]

Consolidate Options with Arrays in your WordPress Plugins

If you’ve ever written a plugin for WordPress you’ve probably dealt with giving the end user options. Unless you’ve taken the low road and forced the user to directly edit the plugin file, “options” means a Settings screen in the WordPress admin, and most likely you are storing those options in the blog’s wp-options [...]

WordPress plugin attribution footer — update

In a recent post I showed how to put an attribution in the footer of your plugin’s admin screen. In the example I gave, I used a format of:
MyWidget plugin | Version 1.0
I have seen a few plugins already updated and using this methodology, but for the most part authors are adding a third [...]

Give your WordPress plugin credit without cluttering the GUI

In a previous post I discussed the idea of locating your plugin’s Settings screen where it made sense within the Admin menus — giving an example of my own pull-quotes plugin’s Settings going under the Design menu. I briefly touched on a further aspect of this, when I suggested that authors not make their [...]

Use Action Links to direct users straight to your WordPress plugin’s admin page

I’ve recently come across repeated discussions (especially on the wp-hackers mailing list) debating where plugin authors should place their custom admin pages. I discussed that question directly in my previous post, and basically stated that the plugin’s admin page can go any number of places, depending on what the plugin does. Some people [...]