O'Reilly logo

WordPress 3 Plugin Development Essentials by Everett Griffiths, Brian Bondari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing our plugin

Now that we have the basic functionality in place, you might realize that the success of this plugin depends on the uniqueness of your shortcode. If another plugin happened to use the same name for their shortcode, your plugin could break. It's not a likely scenario, but it's one we're going to address by creating an administration page to let the users control the name of the shortcode.

We've created a manager page before, but let's review the process now. In order to have a manager page for this plugin, we need three things: a function that defines the menu item, a function that generates the page when that menu item is clicked, and finally an add_action() hook to ensure that the other two functions are executed.

Let's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required