Archives for June 2013

Do You Want Professional WordPress Plugin Development Second Edition?

Recently I’ve been thinking about my book Professional WordPress Plugin Development, and whether there’s enough demand for a second edition.

Over the years I’ve received some amazing feedback from readers, many of whom have since released plugins on WordPress.org after reading the book. The book is an amazing resource for anyone creating custom plugins in WordPress, from beginners to experts alike. I use the book on an almost daily basis to refresh my memory on proper techniques, functions, and hooks to use when building plugins.

The original Professional WordPress Plugin Development was written for WordPress 3.1, which was released over 2 years ago. The book is still the highest rated WordPress development book on Amazon, with a solid 5-star rating.
pro-wordpress-5-star-reviews

I have two questions for you:

  • Do you want to see a second edition?
  • What would you like to see in a second edition?

I’d love to hear your thoughts in the comments below!

How To: Create a Network Only Plugin in WordPress

If you’ve ever created a custom plugin in WordPress, you should be familiar with the standard plugin header code. The information set in your plugin header is displayed under the Plugins admin menu in WordPress shown below:

wordpress-plugin-header-example

There is a lesser known piece of information that can be defined in your plugin header that tells WordPress to only show your plugin on the WordPress Multisite Network Plugins page. This will hide your plugin from being displayed and activated at the site level in WordPress Multisite. To only allow your plugin to show at the Network Plugins level, simply add this one line to your plugin header code:

Network: true

Easy, right? Let’s look at an example comparing a standard plugin header with a network only plugin header.

Standard Plugin Header:

/*
Plugin Name: My Awesome Plugin
Plugin URI: http://webdevstudios.com/support/wordpress-plugins/
Description: This is my extremely awesome WordPress plugin
Version: 1.0
Author: Brad Williams
Author URI: http://webdevstudios.com
License: GPLv2
*/

Network Only Plugin Header:

/*
Plugin Name: My Awesome Plugin
Plugin URI: http://webdevstudios.com/support/wordpress-plugins/
Description: This is my extremely awesome WordPress plugin
Version: 1.0
Author: Brad Williams
Author URI: http://webdevstudios.com
License: GPLv2
Network: True
*/

Using this method you can be sure your WordPress plugin will only be network activated in Multisite.