Pro WP Plugin Dev Book Review

The Book Recap: Professional WordPress Plugin Development

This book will teach you everything you need to know about developing WordPress plugins. It will walk you through the initial steps of setting up your first plugin to advanced topics never before covered in detail.
JustinTadlock.com

Chapter 1: An Introduction to Plugins

What is a Plugin?

This chapter covers about the basic of plugins. Explain the list of main WordPress APIs and How plugins interact with WordPress. This chapter gives introduction of WordPress APIs and their function:

  1. Plugins
  2. Widgets
  3. Shortcode
  4. HTTP
  5. Settings
  6. Options
  7. Dashboard Widgets
  8. Rewrite
  9. Transients
  10. Database

When Are Plugins Loaded?

There’s a informative diagram of the order of standard loading process when loading a page in WordPress. From wp-config to page content.

This chapter also covers about when to add functionality in theme vs plugin, the advantage to using plugins, how to install plugins, managing, editing, type of plugins, and testing plugin functionality.

Chapter 2: Plugin Foundation

this chapter is about how to create a plugin. Folder structure, license, plugin path, activation/deactivation function, create default options on plugin activation, the difference of plugin deactivation and plugin uninstall, and the most important, Coding Standard and Best Practice. Explain in detail about how to document your code and a nice list of Plugin Development Checklist.

Chapter 3: Hooks

Hooks are the backbone of WordPress. This chapter is all about hooks:

  1. Action hook
  2. Filter hook
  3. Create custom hook with example
  4. How to find hook

Chapter 4: Integrating in WordPress

How to add menu, and sub-menu for your plugin admin page, creating widgets and dashboard widgets with options, create meta boxes, and designing and styling your plugin.

Chapter 5: Internationalization

Understanding the description of internationalization and localization, Why you need to internationalize your plugin, Internationalizing JavaScript. Also covers the tools you need, and how to use them.

Chapter 6: Plugin Security

Exploits of a Mom http://xkcd.com/327/

This chapter is about how to secure your plugin from abuse, for example: Cross site scripting, (XSS), Cross Site Request Forgery (CSRF), SQL Injection, Privilege Escalation, Vulnerabilities, Holes, etc. This chapter explain how to correctly use User Permissions, Nonces, Data Validation and Sanitization, and how to Format SQL Statements.

Chapter 7: Plugin Settings

  1. Using a WordPress database to save and get data
  2. Leveraging the API functions to write compact and future proof
  3. Saving global options, or per user options
  4. Saving special option types: expiring options
  5. Creating Custom database table, when and how to do it.

Chapter 8: Users

  1. Working with users and user functions
  2. Adding, updating, and retrieving user data
  3. Developing for roles and capabilities
  4. Limiting access with user permission
  5. Customizing user roles

Chapter 9: HTTP API

  1. Learning what an HTTP request is
  2. Performing HTTP request with WordPress
  3. Plugging your blog with third-party APIs
  4. Reading server responses in various formats
  5. Creating your own remote API

Chapter 10: The Shortcode API

  1. Creating custom shortcode
  2. Register complex and parameterized shortcodes
  3. mastering advanced shortcode tips
  4. Connecting your site with Google Maps

Chapter 11: Extending Posts: Metadata, Custom Post Types, and Taxonomies

This chapter is all about post, the content of your blog/website. And the possibilities of WordPress as CMS.

Chapter 12: JavaScript and Ajax in WordPress

  1. Understanding JQuery and Ajax
  2. Correctly loading JavaScript in WordPress
  3. Adding script only when needed
  4. Making interactive interfaces with Ajax in WordPress
  5. Implementing security checks in your Ajax request
  6. Complete example: Instant “Read More” Links

Chapter 13: Cron

  1. Understanding cron
  2. Managing schedule and single events
  3. Unscheduling cron events
  4. Viewing all schedule cron jobs
  5. Creating custom intervals in cron
  6. Creating practical use examples

Chapter 14: The Rewrite API

This is my favorite chapter 🙂 . I use the tutorial to create affiliate link like this: get this book

  1. Understanding the concept of URL rewriting
  2. Creating Rewrite rules in plugins
  3. Making a complete, new permalink structure
  4. Integrating a non-WordPress page with the same URL layout
  5. Generating a custom feed

Chapter 15: Multisite

  1. Using Multisite versus standard WordPress
  2. Understanding Multisite terminology
  3. Exploring common Multisite functions
  4. Switching between sites in a network
  5. Managing how to aggregate content across sites
  6. Working with network and site options
  7. Understanding users and site roles
  8. Determining database schema differences
  9. Installing and configuring Multisite

Chapter 16: Debugging and Optimizing

  1. Keeping updated with WordPress
  2. Debugging your plugins
  3. Logging debug errors
  4. Caching data for optimal speed