Professional WordPress Plugin Development

Professional WordPress Plugin Development

Paperback

$41.70 $44.99 Save 7% Current price is $41.7, Original price is $44.99. You Save 7%.
View All Available Formats & Editions
Choose Expedited Shipping at checkout for guaranteed delivery by Monday, March 25

Product Details

ISBN-13: 9780470916223
Publisher: Wiley
Publication date: 03/22/2011
Pages: 552
Product dimensions: 7.40(w) x 9.20(h) x 1.10(d)

About the Author

Brad Williams is the CEO and cofounder of webdevstudios.com. He is a coauthor of Professional WordPress.

Ozh Richard has released a number of popular WordPress plugins and won an Annual WordPress Plugin Competition.

Justin Tadlock has developed numerous plugins and teaches users how to use plugins and themes at his WordPress site ThemeHybrid.com.

Read an Excerpt

Click to read or download

Table of Contents

FOREWORD xxi

INTRODUCTION xxiii

CHAPTER 1: AN INTRODUCTION TO PLUGINS 1

What Is a Plugin? 1

Available Plugins 3

Advantages of Plugins 5

Installing and Managing Plugins 7

Summary 10

CHAPTER 2: PLUGIN FOUNDATION 11

Creating a Plugin File 11

Sanity Practices 12

Header Requirements 14

Determining Paths 15

Activate/Deactivate Functions 18

Uninstall Methods 20

Coding Standards 22

Plugin Development Checklist 26

Summary 27

CHAPTER 3: HOOKS 29

Actions 30

Filters 39

Using Hooks from Within a Class 51

Creating Custom Hooks 52

How to Find Hooks 55

Summary 57

CHAPTER 4: INTEGRATING IN WORDPRESS 59

Adding Menus and Submenus 59

Creating Widgets 63

Meta Boxes 79

Keeping It Consistent 90

Summary 96

CHAPTER 5: INTERNATIONALIZATION 97

Internationalization and Localization 97

Creating Translation Files 113

Summary 115

CHAPTER 6: PLUGIN SECURITY 117

Securing Your Plugin 117

User Permissions 118

Nonces 120

Data Validation and Sanitization 127

Formatting SQL Statements 149

Security Good Habits 160

Summary 161

CHAPTER 7: PLUGIN SETTINGS 163

The Options API 163

The Settings API 169

The Transients API 180

Saving Per-User Settings 183

Storing Data in Custom Tables 191

Summary 196

CHAPTER 8: USERS 197

Working with Users 198

Roles and Capabilities 219

Limiting Access 221

Customizing Roles 229

Summary 236

CHAPTER 9: HTTP API 237

HTTP Requests Crash Course 237

WordPress’ HTTP Functions 242

Practice: Reading JSON from a Remote API 255

Practice: Sending Data to a Remote API 259

Practice: Reading Arbitrary Content 262

Make Your Own Plugin Repository 263

Special Case: Fetching Remote Feeds 269

Summary 270

CHAPTER 10: THE SHORTCODE API 271

Creating Shortcodes 271

Shortcode Tips 277

Integrating Google Maps 286

More Shortcode Quick Ideas 295

Summary 297

CHAPTER 11: EXTENDING POSTS: METADATA, CUSTOM POST TYPES, AND TAXONOMIES 299

Creating Custom Post Types 300

Using Custom Post Types 309

Post Metadata 313

Creating Custom Taxonomies 318

Using Custom Taxonomies 324

A Post Type and Taxonomy Plugin 329

Summary 332

CHAPTER 12: JAVASCRIPT AND AJAX IN WORDPRESS 333

jQuery–A Brief Introduction 333

Ajax 337

Adding JavaScript in WordPress 341

Ajax in WordPress 358

Summary 373

CHAPTER 13: CRON 375

What Is Cron? 375

Scheduling Cron Events 376

True Cron 386

Practical Use 386

Summary 401

CHAPTER 14: THE REWRITE API 403

Why Rewrite URLs 403

How WordPress Handles Queries 406

Practical Uses 408

Summary 423

CHAPTER 15: MULTISITE 425

Differences 426

Enabling Multisite in WordPress 427

Multisite Functions 428

Multisite Database Schema 460

Summary 461

CHAPTER 16: DEBUGGING AND OPTIMIZING 463

Supporting Old Versions (Not) 463

Debugging 466

Error Logging 472

Caching 473

Summary 477

CHAPTER 17: MARKETING YOUR PLUGIN 479

Choosing a License for Your Plugin 480

Submitting to WordPress.org 482

Getting Your Plugin Renowned 489

Summary 496

CHAPTER 18: THE DEVELOPER TOOLBOX 497

Core as Reference 497

Codex 501

Tool Web Sites 502

PHPXref 502

Community Resources 503

Tools 507

Summary 509

INDEX 511

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

Professional WordPress Plugin Development 5 out of 5 based on 0 ratings. 2 reviews.
IvanIlijasicII More than 1 year ago
I will be short. Why buy this book? If you want to be good in WP plugin develelopment you need to know many things, how to develop admin plugin, frontend widget, implement dashboard widget, shortcodes, hooks, learn how to use Ajax in administration modules, how to expand basic posting administration, how to create additional data records and integrate it into current WP engine. How to connect your backend plugin with web service. How to handle users and security roles. Plus you need to know basic rules for creating plugins,widfets, shortcodes etc. All these things you can learn at one place - this book. I bought it for this reason. To have all this info in one place. Like Professional Wordpress, the book contains many advice. I recommend it. IMHO if you want to be a good Wordpress developer you need to read these two books. Period ;)
Anonymous More than 1 year ago